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.