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.