[Solved] Need some help tweaking my menus/navigation
Posted: Fri Jan 28, 2011 4:31 pm
I don't know if this is post belongs here or in the CSS section; feel free to move it if need be.
I just noticed something on my navigation, that I stuck trying to fix. I using a greater than greater than symbol to indicate that parent link has children. However, when I go to the parent page, the greater than symbol disappears from the menu. Yet the sub menu works just fine.
So my question is, how do I get the greater than symbol to appear when I am on the parent page?
My web site is here, and if you go to Information > Tuition then go back to the Information drop down menu you will notice that the greater than symbol is gone.
Here is my code for my menu:
I just noticed something on my navigation, that I stuck trying to fix. I using a greater than greater than symbol to indicate that parent link has children. However, when I go to the parent page, the greater than symbol disappears from the menu. Yet the sub menu works just fine.
So my question is, how do I get the greater than symbol to appear when I am on the parent page?
My web site is here, and if you go to Information > Tuition then go back to the Information drop down menu you will notice that the greater than symbol is gone.
Here is my code for my menu:
Code: Select all
{if $count > 0}
<ul id="nav" class="sf-menu">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="<ul> times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
</li>
{elseif $node->index > 0}</li>
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
<li><a href="{$node->url}" {if $node->target}onclick="target='newwindow'" {/if}>{$node->menutext}</a>
{elseif $node->haschildren == true and $node->depth >= 2}
<li><a href="{$node->url}" {if $node->target}onclick="target='newwindow'" {/if}><span style="float:right;">></span>{$node->menutext}</a>
{elseif $node->haschildren == true and $node->type != 'sectionheader' and $node->type != 'separator'}
<li><a href="{$node->url}" {if $node->target}onclick="target='newwindow'" {/if}>{$node->menutext}</a>
{elseif $node->current == true}
<li><a href="{$node->menutext}">{$node->menutext}</a>
{elseif $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}
{else}
<li><a href="{$node->url}" {if $node->target}onclick="target='newwindow'" {/if}>{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}