[solved] Menu in new css template
Posted: Thu Mar 14, 2013 4:09 pm
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
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