mám drop down menu všetko je funkčné len pri aktuálne stránke "active" ( v tomto prípade úvod) mi urobí toto - proste sa zmenší v navigačnej lište a urobí to vždy na ktorejkoľvek podstránke :

použitý kód v cms šablóne je:
<div id="menu" class="ddsmoothmenu">
<ul>
<li>{menu template='minimal_menu.tpl' collapse='0'}
{if $count > 1}
{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}
{elseif $node->index > 0}</li>
{/if}
{if $node->current== true}
<li class="active">{$node->menutext}
{else}
<li><a href="{$node->url}" title="{$node->menutext}">{$node->menutext}</a>
{/if}
{/foreach}
{repeat string="</li></ul>" times=$node->depth-1}</li>
</ul>
{/if}
</ul>
<br style="clear: left" />
</div>
css štýl je tento:
.ddsmoothmenu{
}
.ddsmoothmenu ul{
z-index:100;
margin: 0;
padding: 5px;
list-style-type: none;
}
/*Top level list items*/
.ddsmoothmenu ul li{
position: relative;
display: inline;
float: left;
}
/*Top level menu link items style*/
.ddsmoothmenu ul li a {
display: block;
text-align: center;
text-decoration: none;
font-weight: 400;
outline: none;
border: none;
height: 41px;
line-height: 41px;
font-size: 14px;
padding: 0 30px 0 25px;
margin: 0 5px 0 5px;
color: #fff;
}
* html .ddsmoothmenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}
.ddsmoothmenu ul li a.selected, .ddsmoothmenu ul li a:hover { /*CSS class that's dynamically added to the currently active menu items' LI A element*/
position: relative;
background: url(../images/templatemo_menu_r.png) no-repeat right
}
.ddsmoothmenu ul li a.selected span, .ddsmoothmenu ul li a:hover span {
position: absolute;
left: -5px;
width: 41px;
height: 41px;
background: url(../images/templatemo_menu_l.png) no-repeat
}
/*1st sub level menu*/
.ddsmoothmenu ul li ul{
position: absolute;
padding: 0;
margin: 0;
left: 0;
display: none; /*collapse all sub menus to begin with*/
visibility: hidden;
background: #e50000;
border-bottom: 1px solid #f5f5f5;
}
/*Sub level menu list items (undo style from Top level List Items)*/
.ddsmoothmenu ul li ul li{
display: list-item;
float: none;
padding: 0;
margin: 0;
}
/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.ddsmoothmenu ul li ul li ul{
top: 0;
padding: 0;
margin: 0;
}
/* Sub level menu links style */
.ddsmoothmenu ul li ul li a{
font-weight: 500;
padding: 0 10px;
margin: 0;
height: 28px;
line-height: 28px;
width: 140px; /*width of sub menus*/
font-size: 14px;
text-align: left;
border-bottom: 1px dotted #333;
}
.ddsmoothmenu ul li ul li a.selected, .ddsmoothmenu ul li ul li a:hover { /*CSS class that's dynamically added to the currently active menu items' LI A element*/
background: #333
}
/* Holly Hack for IE \*/
* html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/
/* ######### CSS classes applied to down and right arrow images ######### */
.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}
.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}
/* ######### CSS for shadow added to sub menus ######### */
.ddshadow{
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
background: none;
}
.toplevelshadow{ /*shadow opacity. Doesn't work in IE*/
opacity: 0.5;
}
/* menu */