Forums / Setup & design / {attribute_view_gui attribute=$map.X} putting <p> tags in

{attribute_view_gui attribute=$map.X} putting <p> tags in

Author Message

David Barker

Thursday 07 August 2003 6:22:44 am

Hi,
I have just made my own product page template but when I use this... {attribute_view_gui attribute=$map.X}, it adds a <p> tag before and a </p> tag after so when you view it from the user's point of view, there are paragraphs (which are messing up my design) but I don't know how to tell eZpublish not to put the <p> tags in.

An example...
I am using this code to place the description in my template:

Description: {attribute_view_gui attribute=$map.description}

But when the user sees the product page (and view the source) this is what is displayed:

Description: <p>
(the description) </p>

The <p> tag means that I get a big line between each item - and I don't want it there. So how do I stop the <p> tag being placed?

Thanks!

Dave

David Hoeffer

Thursday 07 August 2003 8:56:17 am

I'd like to know that, too. It seems to happen with the xml text field only. Also, my <br />s in templates are changed to <br>s, which I'd also like to change, as I want to use XHTML...

Bjørn Kaarstein

Thursday 07 August 2003 11:44:13 pm

Turn on debugging in site.ini.append.php

[TemplateSettings]
Debug=enabled

Then you'll see which template is being used for displaying your text. Alter this file, or create an override for it, and your design will be fine. You'll probably find the file in the "design/standard/templates/content/datatype/view"

Regards Bjørn

David Hoeffer

Sunday 10 August 2003 3:54:53 am

Great, with that I was able to solve several minor problems here in one go... Thank you very much.