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

eZ debug

Timing: Jan 18 2025 11:36:32
Script start
Timing: Jan 18 2025 11:36:32
Module start 'layout'
Timing: Jan 18 2025 11:36:32
Module start 'content'
Timing: Jan 18 2025 11:36:32
Module end 'content'
Timing: Jan 18 2025 11:36:32
Script end

Main resources:

Total runtime0.9068 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.1641152.6406
Module start 'layout' 0.00550.0031 741.804739.4766
Module start 'content' 0.00870.8964 781.2813620.4453
Module end 'content' 0.90510.0017 1,401.726612.1406
Script end 0.9068  1,413.8672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4138160.0002
Check MTime0.00130.1486160.0001
Mysql Total
Database connection0.00080.088410.0008
Mysqli_queries0.845693.2411640.0132
Looping result0.00070.0740620.0000
Template Total0.868095.720.4340
Template load0.00240.263820.0012
Template processing0.865695.453620.4328
Template load and register function0.00030.029810.0003
states
state_id_array0.00090.099510.0009
state_identifier_array0.00330.362820.0016
Override
Cache load0.00200.2209400.0001
Sytem overhead
Fetch class attribute can translate value0.00070.076640.0002
Fetch class attribute name0.00130.139850.0003
XML
Image XML parsing0.00090.100140.0002
class_abstraction
Instantiating content class attribute0.00000.001150.0000
General
dbfile0.00120.1272170.0001
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs