Help: So close on Menu
Posted: Thu Dec 11, 2008 10:34 pm
I'm very close to finishing up on my menu, but I'm still struggling just a little bit. I need to move one little thing and would appreciate any suggestions.
I've been using a modified 'menu_icon_expand'

What I'm getting is on the left, what I need to get is on the right. Any thoughts? (I'm testing it on 1.5.1)
I've been using a modified 'menu_icon_expand'
Code: Select all
{if $count > 0}
<__script__ type="text/javascript" language="javascript" src="lib/helparea.js"></__script>
<ul class="menu_horiz" style="padding-left:0;">
{foreach from=$nodelist item=node}
{if $node->depth < $node->prevdepth}
{repeat string="</li></ul>" times=$node->prevdepth-$node->depth}
{assign var="listopen" value="0"}
{elseif $node->index > 0 && $listopen == 0}
</li>
{/if}
{if $node->index == 0}
{elseif $node->haschildren == true }
{elseif $node->haschildren == false }
{/if}
<li style="list-style-type:none;">
{if $node->current == true}
{$node->menutext}
{if $node->haschildren == true }
<ul style="padding-left:14px;">
{assign var="listopen" value="1"}
{/if}
{else}
{if $node->haschildren == true && $node->parent != true}<hr>
<a href="javascript:expandcontent('node{$node->id}');"><img src="http://www.montana.edu/msucommon/images/p7t_plus.gif" alt="" /></a>
{else}
{/if}
<a href="{if $node->id == 15}/{else}{$node->url}{/if}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
{if $node->haschildren == true && $node->parent != true}
{assign var="listopen" value="1"}
<ul id="node{$node->id}" class="expand" style="padding-left:14px;">
{elseif $node->parent == true}
{assign var="listopen" value="1"}
<ul style="padding-left:14px;">
{/if}
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-2}</li>
</ul></ul>
{/if}
What I'm getting is on the left, what I need to get is on the right. Any thoughts? (I'm testing it on 1.5.1)