Calling header tpl in another template

Author Message

H-Works Agency

Thursday 13 April 2006 6:51:02 am

Hi all

How can i call a template from a XML field.

For exemple in my template :

{'<header>My Header</header>'|ezxml()}

Would call :

<b>
./standard/templates/content/datatype/view/ezxmltags/header.tpl
</b>

This would allow me to replace texts titles by images titles on certain sites by overriding the above template in my siteaccess.

Martin Harispuru

EZP is 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 19 2025 01:16:05
Script start
Timing: Jan 19 2025 01:16:05
Module start 'layout'
Timing: Jan 19 2025 01:16:05
Module start 'content'
Timing: Jan 19 2025 01:16:05
Module end 'content'
Timing: Jan 19 2025 01:16:05
Script end

Main resources:

Total runtime0.0234 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.00020.0074 590.4063152.6406
Module start 'layout' 0.00760.0045 743.046939.4766
Module start 'content' 0.01210.0088 782.523485.4609
Module end 'content' 0.02090.0024 867.984430.3047
Script end 0.0233  898.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003715.7691140.0003
Check MTime0.00177.1301140.0001
Mysql Total
Database connection0.00093.906310.0009
Mysqli_queries0.004218.100230.0014
Looping result0.00000.068410.0000
Template Total0.00198.010.0019
Template load0.00104.129710.0010
Template processing0.00093.863510.0009
Override
Cache load0.00072.866710.0007
General
dbfile0.00031.139680.0000
String conversion0.00000.042840.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