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.

eZ debug

Timing: Jan 18 2025 19:39:27
Script start
Timing: Jan 18 2025 19:39:27
Module start 'layout'
Timing: Jan 18 2025 19:39:27
Module start 'content'
Timing: Jan 18 2025 19:39:28
Module end 'content'
Timing: Jan 18 2025 19:39:28
Script end

Main resources:

Total runtime0.6915 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.0703152.6250
Module start 'layout' 0.00630.0030 741.695339.4453
Module start 'content' 0.00930.6808 781.1406529.0859
Module end 'content' 0.69010.0013 1,310.22668.1563
Script end 0.6914  1,318.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4592160.0002
Check MTime0.00130.1914160.0001
Mysql Total
Database connection0.00080.118610.0008
Mysqli_queries0.646193.4385540.0120
Looping result0.00050.0662520.0000
Template Total0.660495.520.3302
Template load0.00180.266820.0009
Template processing0.658695.244620.3293
Template load and register function0.00010.012610.0001
states
state_id_array0.00090.127310.0009
state_identifier_array0.00080.120020.0004
Override
Cache load0.00150.2107170.0001
Sytem overhead
Fetch class attribute can translate value0.00550.801920.0028
Fetch class attribute name0.00110.163040.0003
XML
Image XML parsing0.00090.136020.0005
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00090.1292220.0000
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs