[Solved] double_top.tpl customizations

Author Message

Michaël D.

Thursday 21 August 2008 7:38:48 am

EDIT: Solved, I used the topdrop menu extension and modified it's look.

=========================================================

Hello,

I have trouble customizing the double_top menu template to get something similar to, for instance, the top-menu of http://www.bluesocket.com/

In eZ Publish, the submenus are retrieved and displayed after you've clicked on one menu entry. I want to be able to display the submenus only by hovering a menu entry. What do I have to change in double_top.tpl to retrieve all the submenus at once (I will use CSS to display only the relevant ones)?

Thanks !

Mustafa Aras

Wednesday 01 October 2008 10:57:48 pm

Hi,

I'm very new at eZ. I like it very much but I think documentation is not enough.

I've been trying to modify top menu. I'd like to use topdrop.

Could you please write detailed info about the last step?

6. Tune your menu.
Each fetch has a filter like class_filter_array, array(1)
This will only display folders
In eZwebin, replace by class_filter_array, array(1,19,20,31) to get all needed classes.

Where are these lines?

Thank you!

André R.

Thursday 02 October 2008 12:22:55 am

class_filter takes string identifier also, much easier to work with and read, and since eZ Publish caches class and class attribute identifier to id hash, it's just as fast.

So if you replace the id's you mentioned in a webin install, you get:
class_filter_array, array('folder','blog','blog_post','quicktime')
So probably not valid..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

John Moritz

Thursday 02 October 2008 12:35:13 am

Hi Mustafa,

i recommend u have successfuly done the previous steps, so u have downloaded the topdrop extension and added it to the extension folder of ezpublish. Its also successfuly activated and running.

Go to
"extension/topdrop/design/standard/menu" and open the file "double_top.tpl"
There you can find the entrys you searchin for.

It could be that you use content classes which are not available in the topdrop menu. If this happen just search for the ID of the content class and put it in the line class_filter_array, array(1, 16, 17, 19, 20, 23, 38, 39).
As example: You can find a content class "link" with id "11". If you create a object based on this class it will not display on the topdrop menue.
Now just add the "11" to all lines.
change:
class_filter_array, array(1, 16, 17, 19, 20, 23, 38, 39)
to:
class_filter_array, array(1, 16, 17, 19, 20, 23, 38, 39, 11)

done...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.