Forums / Developer / Removing <p> tag from attribute_view_gui output

Removing <p> tag from attribute_view_gui output

Author Message

Scott Ramsey

Tuesday 26 September 2006 12:00:52 am

Hello,

I'm currently trying to remove the starting paragraph html tag from the output generated by this bit of code -

{attribute_view_gui attribute=$item.object.data_map.intro}

I have attempted a few template operators but I don't seem to be achieving much success. I tried the example below to get rid of the openning paragraph tag, but obviously it hasn't worked:

{attribute_view_gui attribute=$item.object.data_map.intro|remove( 0, 3 )}

Is it possible to use template operators with this kind of template function?

Thanks kindly for any assistance!

Marcin Drozd

Tuesday 26 September 2006 12:57:56 am

Hi Scott
U can remove <p> from the file /design/standard/templates/content/datatype/view/ezxmltags/paragraph.tpl

http://ez-publish.pl

Nabil Alimi

Tuesday 26 September 2006 2:03:10 am

I recommend to copy this template to your design and edit it there. ;)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr