Table id, <thead>, <tbody> in online editor

Author Message

Andreas Kaiser

Tuesday 04 November 2008 4:55:44 am

I need that the tables in onlineeditor are created like the following way:

<table id="myTable"> 
<thead> 
<tr> 
    <th>Last Name</th> 
    <th>First Name</th> 
    <th>Email</th> 
    <th>Due</th> 
    <th>Web Site</th> 
</tr> 
</thead> 
<tbody> 
<tr> 
    <td>Smith</td> 
    <td>John</td> 
    <td>jsmith@gmail.com</td> 
    <td>$50.00</td> 
    <td>http://www.jsmith.com</td> 
</tr> 
<tr> 
    <td>Bach</td> 
    <td>Frank</td> 
    <td>fbach@yahoo.com</td> 
    <td>$50.00</td> 
    <td>http://www.frank.com</td> 
</tr> 
<tr> 
    <td>Doe</td> 
    <td>Jason</td> 
    <td>jdoe@hotmail.com</td> 
    <td>$100.00</td> 
    <td>http://www.jdoe.com</td> 
</tr> 
<tr> 
    <td>Conway</td> 
    <td>Tim</td> 
    <td>tconway@earthlink.net</td> 
    <td>$50.00</td> 
    <td>http://www.timconway.com</td> 
</tr> 
</tbody> 
</table> 

I don't think this can be made with CustomAttributes for table... should I override table.tpl, but then how can _i define <thead> / </tbody> in the online editor...

By the way I'm using new Online Editor 5 (RC6)...

Is this possible, any ideas...

eZ Partner in Madrid (Spain)
Web: http://www.atela.net/

R Doll

Thursday 24 June 2010 8:15:39 am

How to add support for <thead></thead> ?
Have added a thead.tpl and [thead] to content.ini but still eZoe says <thead> is not supported.

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 18 2025 05:00:45
Script start
Timing: Jan 18 2025 05:00:45
Module start 'layout'
Timing: Jan 18 2025 05:00:45
Module start 'content'
Timing: Jan 18 2025 05:00:46
Module end 'content'
Timing: Jan 18 2025 05:00:46
Script end

Main resources:

Total runtime1.0103 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.0067 588.0313152.6406
Module start 'layout' 0.00670.0038 740.671939.4766
Module start 'content' 0.01050.9976 780.1484524.4844
Module end 'content' 1.00810.0019 1,304.63288.1250
Script end 1.0101  1,312.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3564160.0002
Check MTime0.00150.1514160.0001
Mysql Total
Database connection0.00140.135910.0014
Mysqli_queries0.955594.5758540.0177
Looping result0.00060.0600520.0000
Template Total0.966095.620.4830
Template load0.00230.230020.0012
Template processing0.963795.384420.4818
Template load and register function0.00010.007810.0001
states
state_id_array0.00140.134510.0014
state_identifier_array0.00230.231620.0012
Override
Cache load0.00190.1861120.0002
Sytem overhead
Fetch class attribute can translate value0.00060.062620.0003
Fetch class attribute name0.00150.144930.0005
XML
Image XML parsing0.00050.050520.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00630.6254160.0004
String conversion0.00000.000940.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
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs