Explode String

Author Message

Muhammad Khalid Majeed

Thursday 06 May 2004 4:28:05 am

I am trying to split the body of article by the following:

{attribute_view_gui attribute=$:item.object.data_map.body|explode("<br />")}

but this is not working.

Can any body help me???

Muhammad Khalid
Software Engineer
www.webgurru.net

Paul Forsyth

Thursday 06 May 2004 4:59:23 am

If your body attribute is a xml text field try:

{$:item.object.data_map.body.content.output.output_text|explode("<br />")}

paul

--
http://www.visionwt.com

John Mina

Thursday 06 May 2004 5:29:51 am

What does the EXPLODE statment, do ?

?
Sicnerely
JOhn

Alex Jones

Thursday 06 May 2004 6:23:54 am

IT allows you to split the contents of an array.

Array Handling Documentation: http://ez.no/ez_publish/documentation/development/libraries/ez_template/operators/array_handling

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Muhammad Khalid Majeed

Friday 07 May 2004 12:03:46 am

Thanx Paul

{$:item.object.data_map.body.content.output.output_text|explode("<br />")} is working in my case.

Muhammad Khalid
Software Engineer
www.webgurru.net

John Mina

Saturday 08 May 2004 11:43:56 pm

Thanks TO you guys
I understood it now , will chekc if i can use it :)

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