Horizontal Dropdown menu shows only 1 dropdown item

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Horizontal Dropdown menu shows only 1 dropdown item

Post by r00ki3 »

Hi All,

As described in the topic-subject, i've a problem...

I've installed the CMS MS (my third site sofar with the cms) but the horizontal dropdown cssmenu give some problems.
It just displays 1 dropdown item while i've 6 items under the menu item
here's a link http://pcs-neurofeedback.martinstruik.nl

I cant solve it..maybe you guys can? ;)

Please let me know!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by Dr.CSS »

In the source of that page I see only one second level menu item 'ADHD', make sure the other items are checked to show in the menu, Options tab when editing/creating page, and don't forget to set the parent for it...
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by r00ki3 »

The items are active and the option "show in menu" is checked. The parent is also set.
the parent is a section header.

so i don't know how to get it work...
Maybe there is something wrong in the menu template (.tpl)?

Plz let me know if you've a solution for this!

thnx
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by r00ki3 »

things i've tried sofar:

-new menu template
-Place pages under other menuitems

In all menu items only the first item of the next level (dropdown) is showed.
Is possible to hide or disable/block the next items in a dropdown menu?
because i think that this happens now...
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by RonnyK »

What happens if you try the following menu template and call that in the menu:
name: 'extra-menu'

Code: Select all

<ul>
{if $count > 0}
{foreach from=$nodelist item=node}
{if $node->index != 0}
{if $node->type == 'sectionheader'}
<li class="sectionheader">{$node->menutext}</li>
{elseif $node->type == 'separator'}
<li class="separator" style="list-style-type: none;"> <hr /></li>
{else}
<li><a href="{$node->url}"{if $node->target ne ""} target="{$node->target}"{/if}>{$node->menutext}</a>
{$node->titleattribute}</li>
{/if}
{/if}
{/foreach}
{/if}
</ul>
with:

Code: Select all

{menu template='extra-menu'}
Ronny
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by RonnyK »

What other pages should be listed, have you tried using "re-order pages", with just shifting content around and submitting as that fixes some hierarchical issues sometimes.

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

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by Dr.CSS »

What does the menu call look like?...

{menu}?...
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by r00ki3 »

RonnyK wrote: What happens if you try the following menu template and call that in the menu:
name: 'extra-menu'

Code: Select all

code
with:

Code: Select all

{menu template='extra-menu'}
Ronny
RonnyK wrote: What other pages should be listed, have you tried using "re-order pages", with just shifting content around and submitting as that fixes some hierarchical issues sometimes.

Ronny
I tried the things you mentioned above...but that doesn't work anything out.
The problem is still there...

mark wrote: What does the menu call look like?...

{menu}?...
The menu call is : {menu template='pcsmenu'}


I thought maybe that the menu is "falling" behind the content.
because it doesn't matter where i place the dropdown menu in the menu bar, it always just one item down.
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by r00ki3 »

solved!!!

I played around with the z-index.
I've set the z-index of the menu-bar to 2 and the z-index of the content part to 1.
And it works in IE as well in FF  ;D
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by Dr.CSS »

You need the z-index because you have position:absolute on all the divs, I don't think they are necessary....
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by r00ki3 »

mark wrote: You need the z-index because you have position:absolute on all the divs, I don't think they are necessary....
indeed...only the wrapper need's to be absolute positioned.
Thnx!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by Dr.CSS »

Actually you could try this...

#Tabel_01 {
margin: 0px auto;
width:1004px;
}
r00ki3
Forum Members
Forum Members
Posts: 87
Joined: Thu Apr 12, 2007 11:16 am

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by r00ki3 »

its already solved.
but thnx anyway  ;D
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by RonnyK »

Can you mark the topic with [solved] then, by modifying the first (original post) subject.

Ronny
LivingMudFish
Forum Members
Forum Members
Posts: 25
Joined: Wed Feb 08, 2006 1:37 pm

Re: Horizontal Dropdown menu shows only 1 dropdown item

Post by LivingMudFish »

any chance of describing the solution instead of just submitting 'it's solved' as i have a similar problem.


cheers
Post Reply

Return to “CMSMS Core”