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
|