Menu Manager Layout Help

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
cpansewicz
Forum Members
Forum Members
Posts: 142
Joined: Fri Jun 17, 2011 12:22 am

Menu Manager Layout Help

Post 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}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Menu Manager Layout Help

Post by Dr.CSS »

ul.sitemap ul ul {list-style: put your style here}...
cpansewicz
Forum Members
Forum Members
Posts: 142
Joined: Fri Jun 17, 2011 12:22 am

Re: Menu Manager Layout Help

Post 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>
Post Reply

Return to “Layout and Design (CSS & HTML)”