[solved] Menu in new css template

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
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

[solved] Menu in new css template

Post by giapippo »

hallo

i'm converting a new css template to the last version of cmsms
all work fine but the menu is a great problem for me

i have:

original template:

<!-- START NAV -->
<div id="nav" class="group">
<ul class="level-1 white">
<li class="home">
<a href="index.html">HOME</a>
<ul class="sub-menu">
<li><a href="home-version-2.html">HOME VERSION 2</a></li>
<li><a href="home-version-3.html">HOME VERSION 3</a></li>

-----------------------------------------------------------------------------

template in cmsms

<!-- START NAV -->
<div id="nav" class="group">

{menu}
</div>
<!-- END NAV -->

---------------------------------------------------------------------------

menu manager

{if $count > 0}
<div id="menuwrapper">
<ul class="level-1 white">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<ul class="unli">' times=$node->depth-$node->prevdepth}
{elseif $node->depth < $node->prevdepth}
{repeat string='</li></ul>' times=$node->prevdepth-$node->depth}
</li>

-----------------------------------------------------------

link = http://www.gianlucacompagno.com/grafica/



what i can do ?

thanks for help
giapippo
Last edited by giapippo on Wed Mar 20, 2013 1:32 pm, edited 1 time in total.
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: Menu in new css template

Post by giapippo »

the problem is similar

http://forum.cmsmadesimple.org/viewtopi ... 20&t=65193


but i can't find the solution ???

bye
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: Menu in new css template

Post by giapippo »

auto solved



{if $count > 0}
<div id="nav">
<ul class="level-1 white">
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string='<ul class="sub-menu">' 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}
Post Reply

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