Show menu items based on FEU group [SOLVED]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
Wilmar
Forum Members
Forum Members
Posts: 15
Joined: Wed Jul 23, 2008 9:30 am

Show menu items based on FEU group [SOLVED]

Post by Wilmar »

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
Last edited by Wilmar on Sun Feb 01, 2009 4:38 pm, edited 1 time in total.
User avatar
Wilmar
Forum Members
Forum Members
Posts: 15
Joined: Wed Jul 23, 2008 9:30 am

Re: Show menu items based on FEU group

Post by Wilmar »

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}
Post Reply

Return to “Modules/Add-Ons”