using external javascript, but dynamically generated?

Author Message

Kai Duebbert

Tuesday 12 July 2005 1:15:52 am

Hi,

We have a menu which currently gets embedded into each page. I really would like to put it into an external file and just include it.

But I'm not sure how to do that because the menu needs to be automatically generated when the content changes. Has anybody got an idea how to do what I want?

Thanks,
Kai

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

Main resources:

Total runtime0.6251 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.1563152.6563
Module start 'layout' 0.00600.0036 740.812539.4922
Module start 'content' 0.00950.6142 780.3047399.6016
Module end 'content' 0.62370.0013 1,179.90638.1250
Script end 0.6250  1,188.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5675160.0002
Check MTime0.00150.2331160.0001
Mysql Total
Database connection0.00080.125110.0008
Mysqli_queries0.587393.9620460.0128
Looping result0.00040.0647440.0000
Template Total0.590594.520.2953
Template load0.00240.378220.0012
Template processing0.588294.096620.2941
Template load and register function0.00020.027710.0002
states
state_id_array0.00170.277310.0017
state_identifier_array0.00090.150720.0005
Override
Cache load0.00190.311080.0002
Sytem overhead
Fetch class attribute can translate value0.00080.136010.0008
Fetch class attribute name0.00070.115710.0007
XML
Image XML parsing0.00010.013810.0001
class_abstraction
Instantiating content class attribute0.00000.001310.0000
General
dbfile0.00090.1365100.0001
String conversion0.00000.001640.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 6
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs