I don't' understand classification in tables

Author Message

Lars Tore Gustavsen

Friday 10 June 2005 2:34:32 am

I guess I have a understanding problem. I'm trying to make a table with a class attribute.
I write in a xml field the following:

<table class='tableBlue' border='1' width='100%'>

I use the normal table.tpl to write this out. Then I get:

<table class="renderedtable" border="1" cellpadding="2" cellspacing="0" width="100%">

The normal table.tbl start like this.

<table {section show=ne($classification|trim,'')}class="{$classification|wash}"
{section-else}class="renderedtable"{/section} border="{$border}" cellpadding="2
" cellspacing="0" width="{$width}">

It looks like the $border works but not the $classification. My point was to get a class="tableBlue" out.

I have also enabled the AvailableClasses[]=tableBlue in my
content.ini.append.php.

Any suggestions?

Łukasz Serwatka

Sunday 12 June 2005 6:34:23 am

In content.ini.append.php you should set

[table]
AvailableClasses[]=tableBlue

if you want to see "tableBlue" in OE on class list during table inserting.

What version of eZ publish do you use? I can`t reproduce your error.

Simple code works fine on eZ publish demo version.

<table class='tableBlue' border='1' width='100%'>
<tr>
  <td></td>
  <td></td>
</tr>
<tr>
  <td></td>
  <td></td>
</tr>
</table>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Lars Tore Gustavsen

Sunday 12 June 2005 11:14:27 am

Thank you for answering

I use 3.6. I took your table code and paste it into a article at admindevel.ezpublish.no/.
The xml code are stored correct, but when I look at it as a normal user at devel.ezpublish.no I get
<table class="renderedtable" ...

This is just like my problem.

Lars Tore Gustavsen

Monday 13 June 2005 10:31:01 pm

Maybe I have to report this as a 3.6 bug?

Łukasz Serwatka

Monday 13 June 2005 10:59:34 pm

Hi Lars,

Yes, please report this problem in bug system.
http://ez.no/community/bugs

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Peter Liscovius

Monday 27 June 2005 5:02:33 am

added a quick solution to bug 6785 ...
( http://ez.no/bugs/view/6785 )

Peter

Antoine W.

Tuesday 28 June 2005 7:26:16 am

I think there is the same problem with <td>.
Are we allowed to set class for <tr> ?

Kirill Subbotin

Monday 22 August 2005 3:46:27 am

This bug is fixed in all branches rev. 12879-12881.

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 22:37:35
Script start
Timing: Jan 18 2025 22:37:35
Module start 'layout'
Timing: Jan 18 2025 22:37:35
Module start 'content'
Timing: Jan 18 2025 22:37:37
Module end 'content'
Timing: Jan 18 2025 22:37:37
Script end

Main resources:

Total runtime1.6086 sec
Peak memory usage4,096.0000 KB
Database Queries78

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.6484152.6406
Module start 'layout' 0.00480.0037 742.289139.4766
Module start 'content' 0.00841.5984 781.7656700.0703
Module end 'content' 1.60690.0017 1,481.835916.1250
Script end 1.6085  1,497.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2092160.0002
Check MTime0.00130.0829160.0001
Mysql Total
Database connection0.00050.030910.0005
Mysqli_queries1.546696.1472780.0198
Looping result0.00080.0521760.0000
Template Total1.578798.120.7894
Template load0.00290.182820.0015
Template processing1.575897.961520.7879
Template load and register function0.00020.010010.0002
states
state_id_array0.00150.094010.0015
state_identifier_array0.00250.153620.0012
Override
Cache load0.00240.1494440.0001
Sytem overhead
Fetch class attribute can translate value0.00080.048750.0002
Fetch class attribute name0.00240.151390.0003
XML
Image XML parsing0.00130.081250.0003
class_abstraction
Instantiating content class attribute0.00000.0015100.0000
General
dbfile0.00090.0576180.0001
String conversion0.00000.000640.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 36
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs