Displaying Article

Author Message

Muhammad Khalid Majeed

Sunday 25 April 2004 11:24:20 pm

When i display the article information using {attribute_view_gui attribute=$NewRe:item.object.data_map.intro} or {attribute_view_gui attribute=$NewRe:item.object.data_map.body} It insert the <p> tag. But i don't want to insert it. Is there any way that i can stop it...?

Muhammad Khalid
Software Engineer
www.webgurru.net

Dominik Pich

Monday 26 April 2004 2:34:22 am

You could try:
{$node.data_map.author.content.output.output_text}
OR
put a div around the p to apply stylesheets

Alex Jones

Monday 26 April 2004 6:49:37 am

You can also override the template used to display the text.

Template Overrides Documentation: http://ez.no/ez_publish/documentation/customization/custom_design/override_templates

Also, if you are going to use something along the lines of <i>{$node.data_map.author.content.output.output_text}</i> keep in mind that you only need to append <i>.output.output_text</i> if it is an XML Text Field. If it is just a Text Field it would be <i>{$node.data_map.author.content}</i>

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 19 2025 01:09:03
Script start
Timing: Jan 19 2025 01:09:03
Module start 'layout'
Timing: Jan 19 2025 01:09:03
Module start 'content'
Timing: Jan 19 2025 01:09:05
Module end 'content'
Timing: Jan 19 2025 01:09:05
Script end

Main resources:

Total runtime1.4750 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 590.4688152.6094
Module start 'layout' 0.00820.0040 743.078139.4297
Module start 'content' 0.01211.4615 782.5078561.3047
Module end 'content' 1.47360.0014 1,343.81258.1875
Script end 1.4750  1,352.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.2000160.0002
Check MTime0.00120.0828160.0001
Mysql Total
Database connection0.00240.160710.0024
Mysqli_queries1.423496.4995590.0241
Looping result0.00060.0406570.0000
Template Total1.433197.220.7166
Template load0.00210.139320.0010
Template processing1.431097.017320.7155
Template load and register function0.00020.015510.0002
states
state_id_array0.00290.197310.0029
state_identifier_array0.00120.080620.0006
Override
Cache load0.00170.1164150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.040430.0002
Fetch class attribute name0.00160.110540.0004
XML
Image XML parsing0.00090.058530.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00070.0500160.0000
String conversion0.00000.001040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs