how to include a javascript in the tpl??

Author Message

M Farhan

Monday 23 June 2003 1:00:48 am

Is there any specific way of inserting the javascript in a tpl, as it doesnt work by simply inserting in the script in the tpl.

Thanks in advance
MF

Selmah Maxim

Monday 23 June 2003 1:11:48 am

Hi

use:

{literal}
js code come here !
{/literal}

Karsten Jennissen

Monday 23 June 2003 1:18:57 am

See docs:
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/how_can_i_use_the_characters_and_in_templates

Karsten

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 31 2025 04:20:29
Script start
Timing: Jan 31 2025 04:20:29
Module start 'layout'
Timing: Jan 31 2025 04:20:29
Module start 'content'
Timing: Jan 31 2025 04:20:29
Module end 'content'
Timing: Jan 31 2025 04:20:29
Script end

Main resources:

Total runtime0.0189 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.2500151.2266
Module start 'layout' 0.00720.0033 739.476636.6641
Module start 'content' 0.01050.0068 776.140690.0625
Module end 'content' 0.01730.0015 866.203129.9922
Script end 0.0188  896.1953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002714.4928140.0002
Check MTime0.00115.8332140.0001
Mysql Total
Database connection0.00137.029210.0013
Mysqli_queries0.003819.996530.0013
Looping result0.00000.068210.0000
Template Total0.00126.210.0012
Template load0.00094.624710.0009
Template processing0.00031.542010.0003
Override
Cache load0.00063.263310.0006
General
dbfile0.002714.040780.0003
String conversion0.00000.036640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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