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}
Menu Manager Layout Help
Re: Menu Manager Layout Help
ul.sitemap ul ul {list-style: put your style here}...
-
- Forum Members
- Posts: 142
- Joined: Fri Jun 17, 2011 12:22 am
Re: Menu Manager Layout Help
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>