This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Install & configuration » CSS Dropdown Top menu Forum

CSS Dropdown Top menu Forum

CSS Dropdown Top menu Forum

Wednesday 28 March 2007 11:14:23 am - 52 replies

This forum is for comments and trouble about the CSS Dropdown Top menu extension on

To Pat - In debug mode, do you see the call to the double_top.tpl
To Sinisa - Could you send me the html output?

Wednesday 05 March 2008 12:39:38 pm

I'm experiencing problems - is this extension compatible with th ezwebin ext?

Wednesday 05 March 2008 5:21:55 pm


Trying this thing in eZ 4.0.0 and it have a strange behaviour:
it shows only the submenu items where I'm in and nothing appears underneath other menu items...

Any help?


Wednesday 05 March 2008 10:31:00 pm

Have a look in the double_top.tpl template.
Each fetch has a

class_filter_array, array(1)

By default only object of class 1 are fetch (the folders). If you want more classes from the to get fetched add their class id

 class_filter_array, array(1,19,20,31)

Same logic apply also to sub folders, you can select at each level which classes are fetched.

Thursday 06 March 2008 11:17:33 am


Here is my filter array:

class_filter_array, array(1, 11, 16, 17, 19, 20, 23, 38, 39)

I changed it for each level but doesn't work...

When I go on my page, it shows only the submenu of the page (like a normal ul list) but no other submenu when I'm going on the other menu items...

When I look into the HTML source no other submenus are present... :-s

Any solutions?

Many thanks!

Modified on Thursday 06 March 2008 11:20:40 am by Gautier Hankenne

Thursday 06 March 2008 3:37:40 pm

Template override problem.

Hi, I tried to install this extension on eZ publish 4.0 with ezwebin but I can't have it working, using the administration interface. (I activated the extension, regenarated the autoload array and emptied the caches...).

I'm testing on a folder-made tree so it is not a matter on class filtering.

According to the debug output, it seems that the double_top.tpl file of the extension does not override the original one located at design/base/templates/menu/double_top.tpl

This is strange because the "menu.ini.append.php" file in the extension's "settings" folder has well overriden the original menu settings from the menu.ini file ([SelectedMenu] CurrentMenu=TopOnly TopMenu=flat_top LeftMenu= )

=> Am I supposed to modify an override.ini.append.php file? Logically, the extensions's settings should automatically set this override...

Thanks in advance for your solutions or ideas happy.gif Emoticon


Friday 28 March 2008 3:11:13 pm

It´s not working for me.... FIXED

I´m using ezpublish 4.0.0 with ezwebin 1.3 and installed this extension according to the instructions, but i don´t get any dynamic menu, what happens is that when a menu which has submenu items is selected the sub menu items are displayed vertically between the bottom of the menu and the top of the path creating a space which expands as there are more subitems...

anyone know a solution for this I´d really like to have this extension working for my upcoming website...

I sorted it out, the double_top.tpl was not being overrided properly so i just copied it to my design folder....

thanx neway


Modified on Friday 28 March 2008 3:49:32 pm by drx f.

Tuesday 01 April 2008 8:57:44 pm

Indeed, it seems that the "double_top.tpl" file of the topdrop extension can not override the standard one using ezwebin1.3.

As drx f. just mentionned it, it is possible to solve this problem by the "hard" way : copying the template in /extension/ezwebin/design/ezwebin/templates/menu
Note that it is then not necessary to copy the stylesheet, images and settings files, which are active even if the template override doesn't work.

Nevertheless, it would be nice to have this extension working out of the box...
=> does anyone see a way to solve this <b>override problem</b>???



Friday 18 April 2008 5:22:50 am

Just wondering if anyone has checked this extension with the upcoming Internet Explorer 8?

I had a quick play with one installation and top drop had sever problems, although I didn't have time to try and find out why.

Has anyone else had any IE8 / top drop experiences, it may become a significant issue for websites using this extension.


p.s @ Gabriel R.
Regarding your Superfish comments on the contribution page, is this something you have done or a suggesting someone try.

Sunday 20 April 2008 4:05:10 pm

Right with MikRob

It should be possible to plug it as any extension.


Monday 21 April 2008 8:18:26 am


Never tested with IE8

Will make it a 'full' extension ASAP I have time...

Thanks for comments

Friday 02 May 2008 8:33:01 am

Hi all,

I'm a newbie to eZ Publish.
And I just started using this extension which I think a very nice one.
Thanks for creating it.

Currently when we use the Link object, it will point to the object id and not the link itself that contained by that Link object.

I tried to fix it by modifying some code :
{if eq( $:item.class_identifier, 'link')}
<li><a class="{concat('menu_',$i)}" href={$:item.data_map.location.content|wash()}>{$}
<li><a class="{concat('menu_',$i)}" href={$:item.url_alias|ezurl}>{$}

Hope this info helps.
And please correct me if I do it the wrong way.

Thank you.

Thursday 08 May 2008 12:20:54 pm

topdrop extension works fine - except in Opera, where the dropdown is displayed, but when I try to choose something in the dropdown it disappears. That is, the dropdown disappears as soon as the mousepointer is outside the top menu line.

Anyine experiencing the same problem? Solutions? It probably is a css problem


Friday 30 May 2008 10:23:22 am

This is a great extension - many thanks.

I have the same problem as Niklas though - how to implement a selected class for the 1st level so that it is clear which area of the site the user is in.

Have tried to implement suggestions here:

but with no joy.

$goleft=ezini( 'TopDrop', 'goleft', 'design.ini')
$root_node=fetch( 'content', 'node', hash( 'node_id', $pagedata.root_node) )
$item_class = array()
$current_node_in_path = first_set($pagedata.path_array[1].node_id, 0  )

{let top_cat=2 used_node=false()}
{set used_node=2}

<div class="menu floatRight">
    <ul>{def $base=fetch( 'content', 'node', hash( 'node_id', 2 ) )} 
    {* FIRST LEVEL *}
    {def $i=0}
    {section loop=fetch(content,list,hash(parent_node_id,$top_cat, class_filter_type, "include", class_filter_array, array(1, 16, etc),sort_by,$base.sort_array))}
    {let child_check=fetch(content,list,hash(parent_node_id,$:item.node_id, class_filter_type, "include", class_filter_array, array(1, 16, etc),sort_by,$base.sort_array))}
    {set $i=inc( $i )}
	{set $item_class = cond($current_node_in_path|eq($item.node_id), array("selected"), array())}

    {if $i|gt( $goleft )}
    <li class="last_tab">

            <a class="{$item_class|implode(" ")}" {*etc!!!*}

$item_class remains empty...

Help greatly appreciated

Saturday 31 May 2008 1:58:05 pm

OK - here's the solution that I've got:

$root_node=fetch( 'content', 'node', hash( 'node_id', $pagedata.root_node) )

does not work because $pagedata does not exist so I removed that.

then use

$current_node_in_path = first_set($module_result.path[1].node_id, 0  )

in place of

$current_node_in_path = first_set($pagedata.path_array[1].node_id, 0 )

happy.gif Emoticon

Wednesday 16 July 2008 2:49:53 pm

I have installed it, it look very nice with firefox.
But the menus doesn't drop down in (don't smile) IE7.
IE6 works fine.
As nobody reacts it must have worked at a time.
Hope anybody can help me!

Friday 15 August 2008 8:51:03 am

Howdy, is this extension still been maintained? I'm having the same trouble as Christoph currently. I'll see if I have an older copy handy and see if it resolves the problem with IE7, currently there is no display on mouse over.

Saturday 10 January 2009 8:58:08 pm

Dear All,
I'm new in using ez publish 4.
Please kindly explain (step by step) how to resolve problem with ezpublish 4 like drx f./Mickael Robin explain before.

Thank you before

Wednesday 14 January 2009 8:40:36 am


You have to setup your ez publish to use the 'flat top' to have it working.

I'm running it on several ez publish with ezwebin installed, both 4.0 and 4.1 alpha with no specific problems, should works as it is.

Thursday 15 January 2009 11:46:33 pm

did u mean replacing

  <!-- Top menu area: START -->
  <div id="topmenu" class="float-break">
    {include uri='design:menu/flat_top.tpl'}
  <!-- Top menu area: END -->


 <div class="float-break">
     {menu name=TopMenu}

in extension\ezwebin\design\ezwebin\templates\pagelayout.tpl? i did that

Modified on Thursday 15 January 2009 11:47:32 pm by Budiono bee

Friday 16 January 2009 12:04:29 am

Yes, this is exactly my template code.

In debug mode, do you see the call to the topdrop template ?


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from