Page 1 of 1

Menu Manager Layout Help

Posted: Wed Jun 20, 2012 6:28 pm
by cpansewicz
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}

Re: Menu Manager Layout Help

Posted: Wed Jun 20, 2012 8:33 pm
by Dr.CSS
ul.sitemap ul ul {list-style: put your style here}...

Re: Menu Manager Layout Help

Posted: Fri Jun 22, 2012 5:52 am
by cpansewicz
Thank you! Thank makes so much sense. I was thinking there was some type of Smarty code that I should write in. I wasn't thinking of adding CSS>