Forums / Developer / Displaying Article

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>