Forums / Setup & design / This is a bug. Please fix this

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

eZ debug

Timing: Jan 18 2025 16:23:50
Script start
Timing: Jan 18 2025 16:23:50
Module start 'content'
Timing: Jan 18 2025 16:23:51
Module end 'content'
Timing: Jan 18 2025 16:23:51
Script end

Main resources:

Total runtime0.7756 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7266180.8359
Module start 'content' 0.00630.6711 768.5625597.0156
Module end 'content' 0.67740.0981 1,365.5781337.4063
Script end 0.7755  1,702.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4831210.0002
Check MTime0.00160.2061210.0001
Mysql Total
Database connection0.00120.157510.0012
Mysqli_queries0.709391.45702020.0035
Looping result0.00150.18932000.0000
Template Total0.747296.320.3736
Template load0.00240.309120.0012
Template processing0.744896.031020.3724
Template load and register function0.00010.014410.0001
states
state_id_array0.00090.110510.0009
state_identifier_array0.00110.145920.0006
Override
Cache load0.00200.2536420.0000
Sytem overhead
Fetch class attribute can translate value0.00100.129240.0003
Fetch class attribute name0.00070.093560.0001
XML
Image XML parsing0.00090.112340.0002
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00240.3096280.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs