XMLblock - Fetching and removing surrounding p tag

Author Message

Lars Eirik R

Monday 08 March 2010 1:16:23 am

Hi.

I need to be able to neatly insert all content from an xmlblock but without the surrounding p tag. The surrounding p tag makes it impossible for me to float an image i have.

Can this be done using a regular template output of a variable?

Is there an easy way to do such a thing or should i use a pregreplace or similar?

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 05:11:21
Script start
Timing: Jan 18 2025 05:11:21
Module start 'layout'
Timing: Jan 18 2025 05:11:21
Module start 'content'
Timing: Jan 18 2025 05:11:21
Module end 'content'
Timing: Jan 18 2025 05:11:21
Script end

Main resources:

Total runtime0.7254 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 589.1797152.6406
Module start 'layout' 0.00790.0035 741.820339.4766
Module start 'content' 0.01140.7126 781.2969432.3750
Module end 'content' 0.72400.0014 1,213.67198.1250
Script end 0.7254  1,221.7969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4931160.0002
Check MTime0.00150.2064160.0001
Mysql Total
Database connection0.00100.141510.0010
Mysqli_queries0.686494.6115460.0149
Looping result0.00050.0656440.0000
Template Total0.690795.220.3453
Template load0.00220.308320.0011
Template processing0.688494.896820.3442
Template load and register function0.00010.013410.0001
states
state_id_array0.00100.144010.0010
state_identifier_array0.00140.196320.0007
Override
Cache load0.00180.249580.0002
Sytem overhead
Fetch class attribute can translate value0.00080.110110.0008
Fetch class attribute name0.00150.202220.0007
XML
Image XML parsing0.00050.071310.0005
class_abstraction
Instantiating content class attribute0.00000.000420.0000
General
dbfile0.00090.1234160.0001
String conversion0.00000.001440.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs