Page 1 of 1

frontend: role-dependent menues

Posted: Wed May 17, 2006 3:22 pm
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.

Re: frontend: role-dependent menues

Posted: Wed Jun 07, 2006 2:59 am
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.

Re: frontend: role-dependent menues

Posted: Thu Jun 15, 2006 2:01 am
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

Re: frontend: role-dependent menues

Posted: Thu Jun 15, 2006 2:18 am
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.

Re: frontend: role-dependent menues

Posted: Wed Feb 07, 2007 6:04 pm
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  :-\

Re: frontend: role-dependent menues

Posted: Thu Feb 08, 2007 5:12 am
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  ;) ...

Re: frontend: role-dependent menues

Posted: Thu Feb 08, 2007 1:01 pm
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

Re: frontend: role-dependent menues

Posted: Thu Feb 08, 2007 1:17 pm
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)

Re: frontend: role-dependent menues

Posted: Thu Feb 08, 2007 7:08 pm
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?

Re: frontend: role-dependent menues

Posted: Mon Feb 12, 2007 11:35 am
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 ;) ...

Re: frontend: role-dependent menues

Posted: Tue Feb 13, 2007 2:38 pm
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

Re: frontend: role-dependent menues

Posted: Wed Apr 25, 2007 3:04 pm
by calguy1000
See this thread...... I just figured out how to do it :)

http://forum.cmsmadesimple.org/index.php/topic,11689.0.html