A client wants a hidden section on his site to pubish documents based on project groups. So when a visitor is not logged in the projects part of the site is hidden. When a visitor is loggen in the projects part shows with only the projects that the visitor is participating in in the submenu.
I know how to hide menu items based on login validation using Custom Content, FEU and page aliases. But I can't make a difference on what group the user is logged in.
How can I hide menu items by default, only showing them when a member of a certain group is logged in?
Thanks in advance,
Wilmar Boer
Show menu items based on FEU group [SOLVED]
Show menu items based on FEU group [SOLVED]
Last edited by Wilmar on Sun Feb 01, 2009 4:38 pm, edited 1 time in total.
Re: Show menu items based on FEU group
I managed to solve it myself.
In the pages I have to make sure that the pagealias is the same as the groupname. And that the show in menu is off and the page and caching off. Then the next code did the trick:
{menu template='simple_navigation.tpl' collapse='1'}
{if $ccuser->loggedin()}
{menu show_all='1' template='simple_navigation.tpl' collapse='1' includeprefix=$customcontent_groups }
{/if}
In the pages I have to make sure that the pagealias is the same as the groupname. And that the show in menu is off and the page and caching off. Then the next code did the trick:
{menu template='simple_navigation.tpl' collapse='1'}
{if $ccuser->loggedin()}
{menu show_all='1' template='simple_navigation.tpl' collapse='1' includeprefix=$customcontent_groups }
{/if}