Hi
I'm trying to change my menu system so it can drop down when mouse over and found one of the default templates already does this but I cant seem to get it to work.
Currently the horizontal menu changes color on mouse over and I will keep the same color scheme, I've added a page and selected a parent page but both menu tabs are active on the home page rather then 1 being hidden, what am I doing wrong?
This is the menu manager template I'm using:
{* CSS classes used in this template:
#menuwrapper - The id for the that the menu is wrapped in. Sets the width, background etc. for the menu.
#primary-nav - The id for the
.menuparent - The class for each that has children.
.menuactive - The class for each that is active or is a parent (on any level) of a child that is active. *}
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->depth > $node->prevdepth}
{repeat string="" times=$node->depth-$node->prevdepth}
{elseif $node->depth prevdepth}
{repeat string="" times=$node->prevdepth-$node->depth}
{elseif $node->index > 0}
{/if}
{if $node->parent == true or ($node->current == true and $node->haschildren == true)}
current == true}
haschildren == true}
type == 'sectionheader'}
{$node->menutext}
{elseif $node->type == 'separator'}
{else}
type != 'sectionheader' and $node->type != 'separator'}
href="{$node->url}" {if $node->accesskey != ''}accesskey="{$node->accesskey}" {/if}{if $node->tabindex != ''}tabindex="{$node->tabindex}" {/if}{if $node->titleattribute != ''}title="{$node->titleattribute}"{/if}{if $node->target ne ""} target="{$node->target}"{/if}>{$node->hierarchy}: {$node->menutext}
{elseif $node->type == 'sectionheader'}
>{$node->hierarchy}: {$node->menutext}
{/if}
{/foreach}
{repeat string="" times=$node->depth-1}
{/if}
Default menu template
Re: Default menu template
A link to the page would help, it most likely has nothing to do with the menu template, but the menu call in the page template or the CSS...
-
- Forum Members
- Posts: 48
- Joined: Sun Feb 28, 2010 3:53 pm
Re: Default menu template
sorry its electrifire.co.uk/cms
I never thought it was the menu template I assume its my css but not sure what I need to change to get it right
I never thought it was the menu template I assume its my css but not sure what I need to change to get it right
Re: Default menu template
First you need to fix some issues like having a longdesc "http://www.electrifire.co.uk/images/logo.jpg" in an image tag, and...
<a class="current"
You also aren't using the menu template you have posted above...
<a class="current"
You also aren't using the menu template you have posted above...
-
- Forum Members
- Posts: 48
- Joined: Sun Feb 28, 2010 3:53 pm
Re: Default menu template
I never changed it in the template and I named the different menu code differently
I changed that and removed the long description and
I changed that and removed the long description and
Re: Default menu template
What you need now it is to attach the simple horizontal menu css then take out the part of it you don't need...
BTW: your missing the closing tag from you header image call />...
BTW: your missing the closing tag from you header image call />...
-
- Forum Members
- Posts: 48
- Joined: Sun Feb 28, 2010 3:53 pm
Re: Default menu template
ah I see make a new css file out of the simple navigation and the original css. Thanks