I am trying to create a custom (semi-custom?) horizontal CSS/image menu, as described here:
http://wiki.cmsmadesimple.org/index.php ... nu_Styling
I'm running into several issues, and I think the biggest one is that I don't understand the menu template syntax. I have read and reread the author's comments, the Menu Manager help, and have searched the forum, but can't seem to get my head around a couple of things. For example, here is the code that the author says should be placed into the menu template:
Code: Select all
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->current == true}
<div class="{$node->menutext|replace:'Home':'home2'|replace:'Contact':'contact2'} nav">
<a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}></a></div>
{elseif $node->parent == true}
<div class="{$node->menutext|replace:'Home':'home2'|replace:'Contact':'contact2'} nav">
<a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}></a></div>
{else}
<div class="{$node->menutext|replace:'Home':'home'|replace:'Contact':'contact'} nav">
<a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}></a></div>
{/if}
{/foreach}
{/if}
Code: Select all
{$node->menutext|replace:'Home':'home2'|replace:'Contact':'contact2'}
Code: Select all
{$node->menutext|replace:'Main':'main2'|replace:'Donations':'donations2'}
Also, what is the significance of this line:
Code: Select all
{if $node->id == 15}
I'll probably have more questions, but if someone can get me pointed in the right direction, I think I can make progress. Thanks in advance!!