This is a bug. Please fix this

Author Message

enigmista enigmista

Wednesday 30 July 2003 4:22:48 am

In my main template i have:
[...]
<div id="body">
<h1>My H1</h1>
{$module_result.content}
{* set children variable *}
{let children=fetch('content',list,hash(parent_node_id,$node.node_id))}
{section name=Child loop=$children max=2}
<h2>{$Child:item.name}</h2>
{$Child:item.data_map.lead_in.content.output.output_text}
<span><a href={concat("/content/view/full/",$Child:item.node_id)|ezurl}>Read more...</a></span>
</div>
{/section}
[...]

If in my xml fields when i put <header 2> without <header 1> before, ez replace it with <header 1>... in my design i have already <h1> and <h2>... in my XML i want <header 2> without <header 1>. Fix this please....

Bård Farstad

Wednesday 30 July 2003 4:34:58 am

This is how it should be. We follow the section/subsection method standardized in XHTML 2.0. This means that you need to have structure in your content. It is illegal to start a document with a subheader.

Most likely you do this because of formatting, and you should change your templates to e.g. show the first level headers in XML fields as <h3>. Alternatively you can add a custom tag which does whatever you need, but you should follow the content structure by using headers.

--bård

Documentation: http://ez.no/doc

enigmista enigmista

Wednesday 30 July 2003 5:00:04 am

i have a structure in my documents:
-----[ IN TEMPLATE ]-----
<h1>Title</h2>
<h2>Subtitle</h2>
-----[ XML FIELD ]-----
<h3>Subtitle 2</h3>

Why eZ force me?Why i must insert <h1> and <h2> for use <h3>?

Bjørn Kaarstein

Wednesday 30 July 2003 5:05:47 am

Enable debugging, and you'll see that there are some ezxmltags templates used for viewing the xml field.

You might want to place those in your override folder, and format them to your liking.

Regards Bjørn

Bård Farstad

Wednesday 30 July 2003 5:18:26 am

eZ publish does only force you to use structure in your headers. You can easily display whatever you like in your end document.

Change the template:
design/standard/templates/content/datatype/view/ezxmltags/header.tpl

PS: remember to make the changes in your current design.

--bård

Documentation: http://ez.no/doc

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 31 2025 03:44:57
Script start
Timing: Jan 31 2025 03:44:57
Module start 'layout'
Timing: Jan 31 2025 03:44:57
Module start 'content'
Timing: Jan 31 2025 03:44:57
Module end 'content'
Timing: Jan 31 2025 03:44:57
Script end

Main resources:

Total runtime0.0218 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 588.1328151.2109
Module start 'layout' 0.00550.0033 739.3438220.7031
Module start 'content' 0.00880.0118 960.04691,001.7891
Module end 'content' 0.02050.0012 1,961.835933.9922
Script end 0.0217  1,995.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.4606140.0002
Check MTime0.00115.1460140.0001
Mysql Total
Database connection0.00073.383610.0007
Mysqli_queries0.00198.714630.0006
Looping result0.00000.050410.0000
Template Total0.00094.110.0009
Template load0.00073.232610.0007
Template processing0.00020.854910.0002
Override
Cache load0.00052.154310.0005
General
dbfile0.00209.290480.0003
String conversion0.00000.037240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs