XML text without embedded images

Author Message

paul bolger

Thursday 17 May 2007 12:24:30 am

I'm building several pages which are pull in content from other items. I'm doing this by embedding the other items in the XML.
This works fine by including a template which pulls the various attributes:

<div class="section">
{$object.data_map.intro.content.output.output_text}
{$object.data_map.body.content.output.output_text}
</div>

...until I put an image in one of the XML fields. For reasons I don't quite understand the image triggers a new div, inside the first one.

Is there a way of separating the XML text from the images?
I tried doing a 'related objects' fetch and foreach, but that didn't seem to work.

Any help would be appreciated. My next avenue of investigation will probably be to have another look at how the custom tags in the website interface work.

Paul Bolger

Paul Bolger

Xavier Dutoit

Thursday 17 May 2007 1:59:49 am

Not quite sure I understood what you're doing but you can modify the template called to display the image in the xml text.

Have you tried to choose embed-inline as the way of displaying the images ? Should work...

X+

http://www.sydesy.com

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