frontend: role-dependent menues

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
uhardegg

frontend: role-dependent menues

Post by uhardegg »

i'm using customcontent and the frontenduser module.

is there a way to
  a) grant access to the pages on group level via the 'page options' menu ?
  b) adjustments of the menu dependent on the group the login-user has ?

thx for your support.
uh.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: frontend: role-dependent menues

Post by calguy1000 »

uh wrote: i'm using customcontent and the frontenduser module.

is there a way to
  a) grant access to the pages on group level via the 'page options' menu ?
  b) adjustments of the menu dependent on the group the login-user has ?

thx for your support.
uh.
The customcontent/feusers stuff is completely seperate from the backend pages and permissions stuff, so you have to kind of work around it.

To provide role dependant menus, you'd have to use customcontent and use different menus dependant upon the group that the user is a member of, assuming the user can't be a member of more than one group at a time.

Regarding editing the pages, group access to the pages themselves has yet to be done.

Hope this helps, get back to me if you have more questions.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Kayin
Forum Members
Forum Members
Posts: 59
Joined: Mon Jun 05, 2006 2:33 am

Re: frontend: role-dependent menues

Post by Kayin »

I've done a front end custom website with "user dependent menu's associated with a master menu" (basically what you're talking about).  It's difficult to do but has great user friendliness when you do it right.

I have yet to see this done on a CMS however. I did it entirely of javascript so I'm positive CMSMS could be adapted to it with only a few hours of work. I had to utilize cookies.  If php could somehow be included into CMSMS, a non cookie php/mysql version could be done. That would be nicer actually.

As for custom editing these user menus... I think if adapted properly it could be done. That'd be an interesting feat actually.

-K
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: frontend: role-dependent menues

Post by calguy1000 »

Well, if you're a smarty wiz you may be able to write a menu manager template that does this all at one shot, but essentially, using customcontent you'd have to do something like:











it's ugly, and you have to setup your page heirarchy well, but it will work.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Michail

Re: frontend: role-dependent menues

Post by Michail »

Will this be implemented in the customcontent module in the future (soon I hope) ?  :)

I'm an extreme novice.. don't know much about PHP, so I don't think I can create the custom menu's myself  :-\
Last edited by Michail on Wed Feb 07, 2007 6:06 pm, edited 1 time in total.
cyberman

Re: frontend: role-dependent menues

Post by cyberman »

Michail wrote: I don't think I can create the custom menu's myself  :-\
It's very easy - where's the problem for you?

If you tell us more, we ca make a look  ;) ...
Michail

Re: frontend: role-dependent menues

Post by Michail »

Well, I have CustomContent and FrontEndUsers installed. But when I add a page, it's visible in the menu for all usergroups, whether they can see the contents of that page or not...

I want the frontend group Admins to see a different menu (i.e. all the menu items), than the frontend group Users.

And I have no idea how I can realize this. A module CustomMenu would be great, but thats not around yet  :D
cyberman

Re: frontend: role-dependent menues

Post by cyberman »

OK, I will show the simplicity  8) - place this as menu part in your template:

Code: Select all

{cms_module module=CustomContent}  
<!--customContent: startif group=admin -->
{menu}
<!--customContent: else -->   
{menu items='userpage-1, userpage-2, userpage-3, ...'}
<!--customContent: endif -->
Via parameter items you can define a list of page aliases for you want to show to unlogged users.

You have only to add the other menu options (for collapsing and so on)
Michail

Re: frontend: role-dependent menues

Post by Michail »

Thanks, I'm going to try it :)
cyberman wrote: You have only to add the other menu options (for collapsing and so on)
What do you mean with this?
cyberman

Re: frontend: role-dependent menues

Post by cyberman »

Michail wrote: What do you mean with this?
Please go to admin panel, menu extensions > modules. On modules list you have to go to help link in the menu manager line. There you will found all possible options I've meant ;) ...
fly2pete
Forum Members
Forum Members
Posts: 11
Joined: Mon Dec 25, 2006 11:18 am

Re: frontend: role-dependent menues

Post by fly2pete »

Hi Cyberman

I have tried your simple menu If Else method and it works well.  :)  Just a pity there is no means of saying 'display all menu items' plus the ones for this group. But cannot have everything ! Just need to build it into my live site.

Thanks

Peter
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: frontend: role-dependent menues

Post by calguy1000 »

See this thread...... I just figured out how to do it :)

http://forum.cmsmadesimple.org/index.php/topic,11689.0.html
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Tips and Tricks”