Forums / Developer / header tags in tables : PB !!!

header tags in tables : PB !!!

Author Message

Anthony M.

Thursday 15 March 2007 3:12:05 am

Hi,

when i insert an header tag in my editor, i can see in my site the real header that i put in the admin...
but when i insert an header IN A TABLE, it is replaced by another header, WHY ?????

how can i fixe this problem ??

Here is my "header.tpl" file :

<a name="eztoc{$toc_anchor_name}" id="eztoc{$toc_anchor_name}"></a>
{switch name=sw match=$level}
{case match=1}
<h1{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</h1>
{/case}
{case match=2}
<h2{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</h2>
{/case}
{case match=3}
<h3{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</h3>
{/case}
{case match=4}
<h4{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</h4>
{/case}
{case match=5}
<h5{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</h5>
{/case}
{case match=6} {* html does not have h7 *}
<h6{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</h6>
{/case}
{case}
<h1{section show=ne($classification|trim,'')} class="{$classification|wash}"{/section}>{$content}</h1>
{/case}
{/switch}

Thanks a lot

Anthony

Steffen Schlönvoigt

Wednesday 30 May 2007 5:01:35 am

Hi,

it seems that eZ changed the way it's declaring headers in 3.9 series. It doesn't have anything to do with your template file.
The problem resists in the xmlinput/outputparsers.
Headers don't get the level attribute assigned in the stored xml any longer.
The level is calculated by the depth of the section it is in. If there is a header before your table, then the level of headers inside your table is derived from this outer header.
I'm sure that doesn't make much sense and believe its a bug.

So, I'm sorry but there seems to be no solution to this right now besides hacking the kernel.

I hope I could help you with your confusion.

Steffen

eZ debug

Timing: Jan 18 2025 18:26:36
Script start
Timing: Jan 18 2025 18:26:36
Module start 'content'
Timing: Jan 18 2025 18:26:36
Module end 'content'
Timing: Jan 18 2025 18:26:36
Script end

Main resources:

Total runtime0.1839 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.7109180.8359
Module start 'content' 0.00760.0086 768.546993.8828
Module end 'content' 0.01620.1677 862.4297523.7734
Script end 0.1839  1,386.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00392.1408200.0002
Check MTime0.00160.8492200.0001
Mysql Total
Database connection0.00120.660510.0012
Mysqli_queries0.133972.80541410.0009
Looping result0.00130.69931390.0000
Template Total0.167190.910.1671
Template load0.00100.558810.0010
Template processing0.166190.293810.1661
Override
Cache load0.00070.406710.0007
Sytem overhead
Fetch class attribute can translate value0.00080.435510.0008
XML
Image XML parsing0.00030.160910.0003
General
dbfile0.00311.6909200.0002
String conversion0.00000.003830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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