ezxml output problem

Author Message

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

David Jones

Friday 15 September 2006 5:36:58 am

Brilliant, thank you

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

eZ debug

Timing: Jan 18 2025 21:06:53
Script start
Timing: Jan 18 2025 21:06:53
Module start 'layout'
Timing: Jan 18 2025 21:06:53
Module start 'content'
Timing: Jan 18 2025 21:06:54
Module end 'content'
Timing: Jan 18 2025 21:06:54
Script end

Main resources:

Total runtime0.9098 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.9453152.6094
Module start 'layout' 0.00550.0031 741.554739.4141
Module start 'content' 0.00860.8995 780.9688468.8203
Module end 'content' 0.90810.0016 1,249.78918.1875
Script end 0.9097  1,257.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3491160.0002
Check MTime0.00130.1405160.0001
Mysql Total
Database connection0.00070.071810.0007
Mysqli_queries0.866995.2920570.0152
Looping result0.00050.0598550.0000
Template Total0.872795.920.4364
Template load0.00210.226020.0010
Template processing0.870795.703220.4353
Template load and register function0.00020.017910.0002
states
state_id_array0.00380.414410.0038
state_identifier_array0.00220.239720.0011
Override
Cache load0.00170.1815190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.065920.0003
Fetch class attribute name0.00100.105530.0003
XML
Image XML parsing0.00020.023920.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00070.0809100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs