How to include tpl code inside javascript

Author Message

Toms King

Monday 18 September 2006 6:00:24 am

Nabil Alimi

Monday 18 September 2006 6:44:37 am

Hi Toms,

Since your JavaScript code doesn't make use of brackets { }, the {literal}...{/literal} statement is useless.
There's nothing that might be interpreted by EzP parser.
So in order to have what you want work, just add something like :

<img src="tvflash01.jpg" onclick="window.open( {concat( '/site_name/content/view/full' , $Node_id )|ezurl(single)} ,'width=300,height=200')">

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

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 19 2025 01:15:44
Script start
Timing: Jan 19 2025 01:15:44
Module start 'layout'
Timing: Jan 19 2025 01:15:44
Module start 'content'
Timing: Jan 19 2025 01:15:44
Module end 'content'
Timing: Jan 19 2025 01:15:44
Script end

Main resources:

Total runtime0.0164 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.0066 592.4688152.6406
Module start 'layout' 0.00660.0027 745.109439.4766
Module start 'content' 0.00930.0048 784.585989.4922
Module end 'content' 0.01410.0022 874.078130.3047
Script end 0.0163  904.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.5663140.0002
Check MTime0.00116.9042140.0001
Mysql Total
Database connection0.00084.692910.0008
Mysqli_queries0.003421.017630.0011
Looping result0.00000.085710.0000
Template Total0.001710.310.0017
Template load0.00095.404810.0009
Template processing0.00084.832310.0008
Override
Cache load0.00063.577010.0006
General
dbfile0.00031.559080.0000
String conversion0.00000.053840.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