javascript inclusion in template

Author Message

Edwin Metselaar

Thursday 20 March 2003 9:17:12 am

I know it was asked before, but I cannot find the post anymore. So sorry for duplication.
Is there a trick to use Javascript easily in templates? I am trying to make a template that includes an image that is changed every so many days into some other image.

Thanks, Edwin

Tony Wood

Thursday 20 March 2003 9:18:17 am

> I know it was asked before, but I cannot find the post
> anymore. So sorry for duplication.
> Is there a trick to use Javascript easily in templates? I am
> trying to make a template that includes an image that is
> changed every so many days into some other image.
>
> Thanks, Edwin

use {literal} javascript stuff {/literal}

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

Edwin Metselaar

Friday 21 March 2003 2:33:18 am

> use {literal} javascript stuff {/literal}

thanks!

Karsten Jennissen

Friday 21 March 2003 2:35:33 am

> > use {literal} javascript stuff {/literal}
>
> thanks!

More stuff here: http://ezwiki.blanko.info/index.php/3XHT_EscapeLiteral

:-)
Karsten

Edwin Metselaar

Friday 21 March 2003 2:46:12 am

> More stuff here:
> http://ezwiki.blanko.info/index.php/3XHT_EscapeLiteral

Great!

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:02:09
Script start
Timing: Jan 18 2025 11:02:09
Module start 'layout'
Timing: Jan 18 2025 11:02:09
Module start 'content'
Timing: Jan 18 2025 11:02:10
Module end 'content'
Timing: Jan 18 2025 11:02:10
Script end

Main resources:

Total runtime0.7518 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.0391152.6406
Module start 'layout' 0.00640.0035 740.679739.4766
Module start 'content' 0.00990.7405 780.1563592.0078
Module end 'content' 0.75030.0014 1,372.164112.1406
Script end 0.7518  1,384.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4385160.0002
Check MTime0.00130.1719160.0001
Mysql Total
Database connection0.00110.149910.0011
Mysqli_queries0.699092.9843650.0108
Looping result0.00070.0879630.0000
Template Total0.717295.420.3586
Template load0.00230.306120.0012
Template processing0.714995.097620.3575
Template load and register function0.00030.036710.0003
states
state_id_array0.00090.115610.0009
state_identifier_array0.00080.105920.0004
Override
Cache load0.00200.2607300.0001
Sytem overhead
Fetch class attribute can translate value0.00100.132630.0003
Fetch class attribute name0.00120.158160.0002
XML
Image XML parsing0.00070.092730.0002
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00210.2829160.0001
String conversion0.00000.001340.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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