Page 1 of 1

Problem with Menu

Posted: Tue Aug 04, 2009 1:28 pm
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

Re: Problem with Menu

Posted: Tue Aug 04, 2009 5:33 pm
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...

Re: Problem with Menu

Posted: Wed Aug 05, 2009 7:25 am
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

Re: Problem with Menu

Posted: Wed Aug 05, 2009 5:56 pm
by Dr.CSS
A link would help...

Re: Problem with Menu

Posted: Wed Aug 05, 2009 9:42 pm
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

Re: Problem with Menu

Posted: Wed Aug 05, 2009 10:03 pm
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