Content of custom tag as XML subtree

Author Message

Anatoly Gubanov

Wednesday 06 April 2005 11:44:35 pm

It would be very useful to have access to content of custom taf as XML subtree and but not template processed result only. Now I overcome this situation following:
I inserted line:
$tpl->setVariable( 'custom_tag_content', $tag, 'xmltagns' );
after line number 630 in file kernel\classes\datatypes\ezxmltext\handlers\output\ezxhtmlxmloutput.php:
$tpl->setVariable( 'content', $childContent, 'xmltagns' );

Kristian Hole

Sunday 10 April 2005 2:09:12 am

Just out of curiosity: Why is this useful? When do you need this?

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

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 00:38:06
Script start
Timing: Jan 31 2025 00:38:06
Module start 'layout'
Timing: Jan 31 2025 00:38:06
Module start 'content'
Timing: Jan 31 2025 00:38:06
Module end 'content'
Timing: Jan 31 2025 00:38:06
Script end

Main resources:

Total runtime0.0218 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2500151.2266
Module start 'layout' 0.00470.0035 739.4766220.7031
Module start 'content' 0.00820.0123 960.1797997.7891
Module end 'content' 0.02050.0013 1,957.968829.9922
Script end 0.0218  1,987.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002511.3063140.0002
Check MTime0.00104.6397140.0001
Mysql Total
Database connection0.00073.199510.0007
Mysqli_queries0.00209.198530.0007
Looping result0.00000.050310.0000
Template Total0.00104.510.0010
Template load0.00083.474810.0008
Template processing0.00020.958310.0002
Override
Cache load0.00052.488110.0005
General
dbfile0.00125.343480.0001
String conversion0.00000.031740.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