Forums / Developer / ezxml output problem
David Jones
Friday 15 September 2006 4:42:06 am
I've entered these tags into an xml field
<h1>a</h1> <h5>b</h5> <h2>c</h2> <p>d</p>
But this is what is output
<h2>a</h2> <h6>b</h6> <h3>c</h3> <p>d</p>
This is crazy!!!!
This is obvioulsy completly messing up my stylesheet.
Why, why, why, would it do this!?!
Claudia Kosny
Friday 15 September 2006 5:03:39 am
Hi David
By default, the specified levels are increased by one. In other words, a level 1 header in the XML block will become a level 2 header (H2) in the resulting HTML. The reason for this is because the H1 tag is reserved for the name / main title of the content object. The headings inside the XML block will thus become subheadings of the main title. This behavior can be changed by creating an override template for the "/content/datatype/view/ezxmltags/header.tpl" template (it can not be controlled from within an configuration file).
Found here:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/datatypes/xml_block#headings
Greetings from Luxembourg
Claudia
Friday 15 September 2006 5:36:58 am
Brilliant, thank you