Literal issue

Author Message

Tony Wood

Wednesday 29 October 2003 1:38:33 am

I was looking through the literal.tpl tryin to solve a problem where html was not being executed when placed in <literal> tags in an XML text field.
I found the problem to be the type of wash used. It uses xhtml, when I changed this to html the html worked as expected.

So the line in literal.tpl override i use now is <pre>{$content|wash(html)}</pre>

I hope this helps someone.

Tony

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

Jan Borsodi

Wednesday 29 October 2003 3:01:49 am

'html' is not a valid parameter to the wash operator, which means that the text is left untouched by the operator.
If this is what you want you can just do.

<pre>{$content}</pre>

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Tony Wood

Wednesday 29 October 2003 3:35:56 am

Arh, that would explain it.

Thanks Jan.

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

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 00:10:16
Script start
Timing: Jan 19 2025 00:10:16
Module start 'layout'
Timing: Jan 19 2025 00:10:16
Module start 'content'
Timing: Jan 19 2025 00:10:18
Module end 'content'
Timing: Jan 19 2025 00:10:18
Script end

Main resources:

Total runtime2.0462 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 587.7891152.6094
Module start 'layout' 0.00480.0046 740.398439.3984
Module start 'content' 0.00942.0354 779.7969540.4219
Module end 'content' 2.04470.0014 1,320.218812.2031
Script end 2.0461  1,332.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.1738160.0002
Check MTime0.00140.0698160.0001
Mysql Total
Database connection0.00080.037410.0008
Mysqli_queries1.995297.5066570.0350
Looping result0.00070.0344550.0000
Template Total2.001697.821.0008
Template load0.00300.145120.0015
Template processing1.998697.672920.9993
Template load and register function0.00010.006510.0001
states
state_id_array0.00150.073910.0015
state_identifier_array0.00320.158620.0016
Override
Cache load0.00250.1236180.0001
Sytem overhead
Fetch class attribute can translate value0.00100.050020.0005
Fetch class attribute name0.00110.052150.0002
XML
Image XML parsing0.00110.055320.0006
class_abstraction
Instantiating content class attribute0.00000.000560.0000
General
dbfile0.00090.0427230.0000
String conversion0.00000.000440.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs