Dynamic menu

Author Message

wendy br

Wednesday 12 November 2003 3:01:43 am

Can someone tell me how to make an dynamic menu with javascript and using the ez publis database at the same time?
I've tried a lot. I already triede the tree menu's but that didn't work.

Can someone help me?

Grtz Ushi

Paul Forsyth

Wednesday 12 November 2003 3:11:07 am

What didn't work with the treemenus? Do you need a specific feature?

paul

Claus Jensen

Wednesday 12 November 2003 3:12:46 am

Hello,
did you look at this: http://ezwiki.blanko.info/index.php/3XHT_TmplObjTree

regards,
claÜs

wendy br

Wednesday 12 November 2003 3:18:36 am

yes i did take a look at that. but i want an rollover menu. So i have to work with javascript i quess.

Paul Forsyth

Wednesday 12 November 2003 3:27:51 am

If you find a nice way of doing this in ez please add it as another treemenu :)

paul

Paul Forsyth

Wednesday 12 November 2003 3:39:27 am

Had another thought about this. If you are building a js menu just to show the objects underneath a parent then it will be quite simple. A fetch, list, will do.

If you are building a complex tree menu you may have to do all of the hard work like searching all nodes before building the js. The Js will not be able to invoke any php after it has been built, and when you rollover something it will have to rely on variables and values that it currently has. So you will need to build everything, then pass it across to the javascript.

This will be slow at the start but if cached it will be fine.

You could use some of the code from existing treemenus to build the tree for you. All you then need to do is write the javascript to display this information.

paul

Alex Jones

Wednesday 12 November 2003 7:32:00 am

Wendy, do you have a navigation script in mind already? If so it might help for you to post more info about it, so we can provide specific recommendations. I have built an extensive rollover nav menu based on the treemenu code and some code from TwinHelix (www.twinhelix.com/). I haven't had a chance to post the code as the actual code I have produced is rather ugly.

The more specific information you provide, the easier it is for us to help you.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Ralf Lohmann

Friday 20 February 2004 3:30:47 am

we would create a dynamic tree menu with ez publish. is there someone how can help us??

iddis GmbH
Gesellschaft für geteiltes Wissen
Society for shared knowledge
Falkstr. 73-77
47058 Duisburg
Germany

Alex Jones

Friday 20 February 2004 6:35:14 am

Ralf, what exactly do you need help with? Specific information will allow people to answer your question.

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 16:15:03
Script start
Timing: Jan 18 2025 16:15:03
Module start 'layout'
Timing: Jan 18 2025 16:15:03
Module start 'content'
Timing: Jan 18 2025 16:15:04
Module end 'content'
Timing: Jan 18 2025 16:15:04
Script end

Main resources:

Total runtime0.7535 sec
Peak memory usage4,096.0000 KB
Database Queries81

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 588.9141152.6094
Module start 'layout' 0.00610.0032 741.523439.3984
Module start 'content' 0.00930.7428 780.9219701.7656
Module end 'content' 0.75210.0014 1,482.687516.2031
Script end 0.7535  1,498.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4301160.0002
Check MTime0.00130.1758160.0001
Mysql Total
Database connection0.00140.180110.0014
Mysqli_queries0.686891.1369810.0085
Looping result0.00090.1151790.0000
Template Total0.719195.420.3595
Template load0.00220.288720.0011
Template processing0.716995.135920.3584
Template load and register function0.00020.026810.0002
states
state_id_array0.00140.184610.0014
state_identifier_array0.00130.177220.0007
Override
Cache load0.00190.2528370.0001
Sytem overhead
Fetch class attribute can translate value0.00080.100950.0002
Fetch class attribute name0.00150.2012110.0001
XML
Image XML parsing0.00180.237050.0004
class_abstraction
Instantiating content class attribute0.00000.0028120.0000
General
dbfile0.00140.1869220.0001
String conversion0.00000.000840.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
9content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 27
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs