Incoporating a 3rd party menu system

Author Message

Kathy McKelvie

Thursday 14 May 2009 3:28:52 am

Hello,

The customer I am working for has purchased the Milonic Menu system. I need to implement this menu system into my existing ezpublish template.

The customer would like this horizontal dropdown menu before the pre-existing ezpublish menubar.

How do I do this?

Thanks

Jon Staines

Thursday 14 May 2009 8:54:34 am

If you hard coded the menu layout into the menu_data.js file it would just be a matter of having the 3 .js files loaded in the right order. You could just add the lines to the pagelayout.tpl template as you would a static HTML site.

Of course, you wouldn't be able to alter the menu through the eZ interface.

To do that you would probably have to move all the content from menu_data.js into an ez template and generate the menu creation parts through foreach loops similar to what goes on in the flat_top/left.tpl templates of the ezpublish menubar.

Kathy McKelvie

Friday 15 May 2009 7:31:42 am

Thank you for answering.

Where do I find this js file?

Jon Staines

Friday 15 May 2009 7:41:43 am

You should get it (full of example data) from Milonic along with two others that do the work. You would need to upload them into the right part of your design folder eg: extension/ezwebin/design/ezwebin/javascript/

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:19:26
Script start
Timing: Jan 18 2025 11:19:26
Module start 'layout'
Timing: Jan 18 2025 11:19:26
Module start 'content'
Timing: Jan 18 2025 11:19:27
Module end 'content'
Timing: Jan 18 2025 11:19:27
Script end

Main resources:

Total runtime0.7637 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0313152.6406
Module start 'layout' 0.00520.0034 740.671939.4766
Module start 'content' 0.00850.7537 780.1484508.3828
Module end 'content' 0.76220.0014 1,288.531312.1406
Script end 0.7636  1,300.6719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4629160.0002
Check MTime0.00160.2084160.0001
Mysql Total
Database connection0.00100.132410.0010
Mysqli_queries0.716093.7496600.0119
Looping result0.00070.0966580.0000
Template Total0.734496.220.3672
Template load0.00180.241820.0009
Template processing0.732695.925420.3663
Template load and register function0.00020.022810.0002
states
state_id_array0.00110.149810.0011
state_identifier_array0.00130.173520.0007
Override
Cache load0.00150.2029190.0001
Sytem overhead
Fetch class attribute can translate value0.00070.086020.0003
Fetch class attribute name0.00290.380350.0006
XML
Image XML parsing0.00070.094420.0004
class_abstraction
Instantiating content class attribute0.00000.002160.0000
General
dbfile0.00090.1113160.0001
String conversion0.00000.001240.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs