frontend: role-dependent menues
frontend: role-dependent menues
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.
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.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: frontend: role-dependent menues
The customcontent/feusers stuff is completely seperate from the backend pages and permissions stuff, so you have to kind of work around it.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.
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.
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.
Re: frontend: role-dependent menues
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
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
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: frontend: role-dependent menues
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.
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.
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.
Re: frontend: role-dependent menues
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

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.
Re: frontend: role-dependent menues
It's very easy - where's the problem for you?Michail wrote: I don't think I can create the custom menu's myself![]()
If you tell us more, we ca make a look

Re: frontend: role-dependent menues
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
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

Re: frontend: role-dependent menues
OK, I will show the simplicity
- place this as menu part in your template:
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)

Code: Select all
{cms_module module=CustomContent}
<!--customContent: startif group=admin -->
{menu}
<!--customContent: else -->
{menu items='userpage-1, userpage-2, userpage-3, ...'}
<!--customContent: endif -->
You have only to add the other menu options (for collapsing and so on)
Re: frontend: role-dependent menues
Thanks, I'm going to try it 

What do you mean with this?cyberman wrote: You have only to add the other menu options (for collapsing and so on)
Re: frontend: role-dependent menues
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 meantMichail wrote: What do you mean with this?

Re: frontend: role-dependent menues
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
I have tried your simple menu If Else method and it works well.

Thanks
Peter
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: frontend: role-dependent menues
See this thread...... I just figured out how to do it 
http://forum.cmsmadesimple.org/index.php/topic,11689.0.html

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.
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.