Forums / General / Dynamic menu

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>

eZ debug

Timing: Jan 18 2025 11:45:37
Script start
Timing: Jan 18 2025 11:45:37
Module start 'content'
Timing: Jan 18 2025 11:45:37
Module end 'content'
Timing: Jan 18 2025 11:45:38
Script end

Main resources:

Total runtime0.1650 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.5313180.8594
Module start 'content' 0.00750.0041 768.3906101.7813
Module end 'content' 0.01160.1533 870.1719529.9609
Script end 0.1649  1,400.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.0580200.0002
Check MTime0.00140.8211200.0001
Mysql Total
Database connection0.00110.652110.0011
Mysqli_queries0.117371.09951410.0008
Looping result0.00140.82101390.0000
Template Total0.153192.810.1531
Template load0.00120.735110.0012
Template processing0.151892.018210.1518
Override
Cache load0.00090.563110.0009
Sytem overhead
Fetch class attribute can translate value0.00090.534410.0009
XML
Image XML parsing0.00030.183110.0003
General
dbfile0.00191.1237200.0001
String conversion0.00000.006130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs