Problem with Menu

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
Spider91112
New Member
New Member
Posts: 3
Joined: Tue Aug 04, 2009 1:15 pm

Problem with Menu

Post by Spider91112 »

Hi everyone,

Wondered if someone could help me figure this out as i'm getting a tad frustrated with one of my menus. Everything works fine apart from on the output of one of my menus when it is expanded I have the a spare




which causes a gap in my menu when expended

Here is the menu manager code:

{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}

Thanks in advance
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with Menu

Post by Dr.CSS »

This is not from the menu template, how do you call the menu in the template, is it a second level menu, where in the menu is the empty li...
Spider91112
New Member
New Member
Posts: 3
Joined: Tue Aug 04, 2009 1:15 pm

Re: Problem with Menu

Post by Spider91112 »

Dr. CSS wrote: This is not from the menu template, how do you call the menu in the template, is it a second level menu, where in the menu is the empty li...
Hi Thanks for your responce,

Yes its a second level menu and called using the following:



                                              {menu template='eu_menu' start_level='2' collapse='1'}


Ive doublechecked my CSS and cant see a problem with it?

Thanks for your help on this
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with Menu

Post by Dr.CSS »

A link would help...
Spider91112
New Member
New Member
Posts: 3
Joined: Tue Aug 04, 2009 1:15 pm

Re: Problem with Menu

Post by Spider91112 »

Ok So Ive figured its CSS Related

Ive attached one of the premade style sheets to my menu submenu and that seems to have sorted it however still having a problem in regards to menu text overflowing with bullet points: Have a look here:

http://www.euhostme.co.uk/hosting/linux_shared.php

Many Thanks
Warren
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with Menu

Post by Dr.CSS »

If you want to make changes to the menus look copy the style sheet that goes with the menu then attach that to the template and add your changes to it...

A real good idea to help with this is topic, Working with HTML/CSS...

http://forum.cmsmadesimple.org/index.ph ... 580.0.html
Post Reply

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