attribute_view_gui to display a XML block entry - SOLVED

attribute_view_gui to display a XML block entry - SOLVED

Thursday 13 November 2008 2:22:07 am - 4 replies

Modified on Wednesday 19 November 2008 12:21:09 am by Sejal Paliwal

Author Message

Łukasz Serwatka

Friday 14 November 2008 12:19:56 am

Hi,

attribute_view_gui using template for output rendering. You can override view template for this datatype in your design and remove unnecessary tag. Standard template is located in: design\standard\templates\content\datatype\view\ezauthor.tpl

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Sejal Paliwal

Friday 14 November 2008 3:09:35 am

Thanks for this.

As you said, I created new override for /content/datatype/view/ezxmltags/paragraph.tpl and deleted the <p> tag(this gave me the expected output), but now all the xml blocks are affected and all my paragraghs have been removed and formed a single block.

Is there any way, I can have two types of XML block, one with and the other without <p> tag?

Please guide me to create new datatype?

Łukasz Serwatka

Friday 14 November 2008 3:22:05 am

You can have override per class attribute. So only this attribute will use your custom template override.

http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_override_conditions

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Sejal Paliwal

Monday 17 November 2008 9:37:55 pm

Thanks for the guidance!!! It worked!!

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.