Default menu 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
electrifire
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 28, 2010 3:53 pm

Default menu template

Post by electrifire »

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

Re: Default menu template

Post by Dr.CSS »

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...
electrifire
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 28, 2010 3:53 pm

Re: Default menu template

Post by electrifire »

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

Re: Default menu template

Post by Dr.CSS »

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...
electrifire
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 28, 2010 3:53 pm

Re: Default menu template

Post by electrifire »

I never changed it in the template and I named the different menu code differently  :-[

I changed that and removed the long description and
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Default menu template

Post by Dr.CSS »

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  />...
electrifire
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 28, 2010 3:53 pm

Re: Default menu template

Post by electrifire »

ah I see make a new css file out of the simple navigation and the original css.  Thanks
Post Reply

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