Menu Manager Layout Help
Posted: Wed Jun 20, 2012 6:28 pm
Hi,
I would like to add a list-style to the the third level <ul> tag in my sitemap, but don't know enough smarty to figure out where to add the statement. Would somebody be able to help me with this? Thank you very much in advance. My menu code is below.
{if $count > 0}
<ul class="sitemap">
{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->depth == 1}
<li><a href="{$node->url}" class="l1">{$node->menutext}</a>
{elseif $node->depth == 2}
<li><a href="{$node->url}" class="l2">{$node->menutext}</a>
{else}
<li><a href="{$node->url}" class="l3">{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
I would like to add a list-style to the the third level <ul> tag in my sitemap, but don't know enough smarty to figure out where to add the statement. Would somebody be able to help me with this? Thank you very much in advance. My menu code is below.
{if $count > 0}
<ul class="sitemap">
{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->depth == 1}
<li><a href="{$node->url}" class="l1">{$node->menutext}</a>
{elseif $node->depth == 2}
<li><a href="{$node->url}" class="l2">{$node->menutext}</a>
{else}
<li><a href="{$node->url}" class="l3">{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}