header-tag in xml-fields - bug or feature?

Author Message

Georg Franz

Monday 06 October 2003 1:32:39 am

Hi,

i've tried to create an article with some headers in the body.

Something like
bla bla ...
<header level='2'>title 2</header>
bla bla ...
<header level='2'>title 3</header>

and so on.

After saving the article the first header level was set to 1 by the system.

So following appears:

bla bla ...
<header level='1'>title 2</header>
bla bla ...
<header level='2'>title 3</header>

So - it's a bug or a feature? ;-)

Kind regards,
Emil.

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Paul Forsyth

Monday 06 October 2003 2:55:09 am

Its a feature :/

Remember that an xml field isn't html. But, it should be easier to relate a header to html...

Take a look here for a workaround:

http://ez.no/developer/ez_publish_3/forum/setup_design/header_level3_gets_formatted_to_header_level1_in_xml_text_field

paul

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 19 2025 01:03:14
Script start
Timing: Jan 19 2025 01:03:14
Module start 'layout'
Timing: Jan 19 2025 01:03:14
Module start 'content'
Timing: Jan 19 2025 01:03:15
Module end 'content'
Timing: Jan 19 2025 01:03:15
Script end

Main resources:

Total runtime0.9048 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0229 589.2734152.6406
Module start 'layout' 0.02290.0036 741.914139.4766
Module start 'content' 0.02640.8768 781.3906523.3281
Module end 'content' 0.90320.0015 1,304.71888.1250
Script end 0.9048  1,312.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4265160.0002
Check MTime0.00150.1634160.0001
Mysql Total
Database connection0.00160.173010.0016
Mysqli_queries0.851894.1426540.0158
Looping result0.00050.0592520.0000
Template Total0.850794.020.4254
Template load0.00240.269120.0012
Template processing0.848393.753420.4241
Template load and register function0.00010.011510.0001
states
state_id_array0.00200.216910.0020
state_identifier_array0.00200.222920.0010
Override
Cache load0.00190.2112270.0001
Sytem overhead
Fetch class attribute can translate value0.00100.106820.0005
Fetch class attribute name0.00170.186730.0006
XML
Image XML parsing0.00060.064620.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00090.1041160.0001
String conversion0.00000.001140.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs