Page 1 of 1

Help with Menu Manager template

Posted: Tue Jan 13, 2009 3:28 am
by zafiro
Hi! i've been working on my website's menu with menu manager. I had some problems before with them menu but i solved them with help at this forum. Now, again, I need the help of the smart people on this forums.

I modified a menu manager template to style it myself. The result:
{if $count > 0}


{foreach from=$nodelist item=node}
{if $node->depth != $node->prevdepth}
{if $node->depth > $node->prevdepth}

{elseif  $node->depth prevdepth}

{/if}
{elseif $node->index > 0}

{/if}

{if $node->index == 0}
{assign var="icon" value="house"}
{elseif $node->haschildren == true }
{assign var="icon" value="folder"}
{elseif $node->haschildren == false }
{assign var="icon" value="page"}
{/if}
{if $node->current == true}

{else}

{/if}
{if $node->type == 'sectionheader'}
depth}">{$node->menutext}
{else}
id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}
{/if}
{/foreach}
{repeat string="" times=$node->depth-1}

{/if}
It was a very little modication using only logic since i barely understand any of these "$node" codes.
As i said, I need the help of the smart people at these forums. Please, help me to modify this template so it stops displaying the "home" page link. I've been playing with it but i got smarty errors etc. so i decided to come to the forums.

Thanks for your help!

Re: Help with Menu Manager template

Posted: Tue Jan 13, 2009 4:39 pm
by Dr.CSS
It would be a whole lot easier to do this with CSS or the new page image selector in page edit mode...

Re: Help with Menu Manager template

Posted: Tue Jan 13, 2009 11:22 pm
by zafiro
Thanks mark. lol, asking the forums is like asking you indirectly!.
Thanks for your time.