[SOLVED] customcontent and sectionheaders
Posted: Sat Nov 21, 2009 1:06 pm
I must be overlooking something but I just can't figure this one out. I used calguy's visual tutorial to hide certain menu-items based on FEU and Custom Content. So far so good.
I have used the following code:
Now this works perfect, however when a user is not logged in or doesn't belong to this particular group the "Section Headers" are still visible. In this particular site visitors are not supposed to see any section headers at all so this could be done the ugly way.
I was thinking of adding this to the menu template:
This obviously doesn't work. Does anyone have any idea how to get his thing working?
I have used the following code:
Code: Select all
{if $ccuser->loggedin() && $ccuser->memberof('Bewoners')}
{menu template='cssmenu_ulshadow.tpl' excludeprefix="public_}
{else}
{menu template='cssmenu_ulshadow.tpl' excludeprefix="private_}
{/if}
I was thinking of adding this to the menu template:
Code: Select all
{elseif $node->type == 'sectionheader' and $node->haschildren == true and $ccuser->loggedin() && $ccuser->memberof('Bewoners')}
<li class="sectionheader"><span class="sectionheader">{$node->menutext}</span>