Is is possible to output content of xml block as text

Is is possible to output content of xml block as text

Wednesday 12 September 2007 10:54:45 am - 3 replies

Author Message

paul bolger

Wednesday 12 September 2007 4:15:50 pm

Hi Jose

You certainly can. But be aware that without stripping the XML tags you may end up with a pretty dirty title.

Try something like this.

{strip_tags( $node.data_map.intro.value.output.output_text ) | wash | shorten(80, '...', right)}

Paul Bolger

Damien Pobel

Thursday 13 September 2007 1:03:20 am

Hi Jose,

Some informations about this question : http://ez.no/community/forum/setup_design/getting_text_version_of_an_xml_blocks (my first post in this forum ;-))

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Fox Mulder

Thursday 13 September 2007 2:12:51 am

In my case I solve the problem with

$node.data_map.xml_block.content.output.output_text|striptags()|trim

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.