Forums / Developer / Explode String
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 ?
? SicnerelyJOhn
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>
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.
Saturday 08 May 2004 11:43:56 pm
Thanks TO you guysI understood it now , will chekc if i can use it :)