Forums / Setup & design / I don't' understand classification in tables
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 Exponential do you use? I can`t reproduce your error.
Simple code works fine on Exponential 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
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.Exponential.no/. The xml code are stored correct, but when I look at it as a normal user at devel.Exponential.no I get <table class="renderedtable" ...
This is just like my problem.
Monday 13 June 2005 10:31:01 pm
Maybe I have to report this as a 3.6 bug?
Monday 13 June 2005 10:59:34 pm
Hi Lars,
Yes, please report this problem in bug system.http://ez.no/community/bugs
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.