Share » Forums » Setup & design » [Solved] double_top.tpl customizations

[Solved] double_top.tpl customizations

[Solved] double_top.tpl customizations

Thursday 21 August 2008 7:38:48 am - 3 replies

Modified on Thursday 28 August 2008 1:55:29 am by Michaël D.

Author Message

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...

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

36 542 Users on board!

Forums menu