Forums / Developer / cellpadding and cellspacing
Kjartan Lerøy
Monday 26 March 2007 11:51:31 pm
Greetings!
I need to display a table with little or no cell-padding and cell-spacing if possible, i.e. the contents of different cells needs to be placed as close to each other as possible. I need to do this in the control-panel / administrator-part of EZPublish, as a part of an article.
I`ve been trying to do this by editing the parameters of a table by hand, after disabling the editing-tool / gui-interface, but the tags seem to be stripped away, and I can`t find any other way to do this.
Any good ideas?
Thanks, Kjartan
Łukasz Serwatka
Tuesday 27 March 2007 12:01:36 am
In settings/override/content.ini.append.php add:
[table] CustomAttributes[]=cellpadding CustomAttributes[]=cellspacing CustomAttributesDefaults[cellpadding]=1 CustomAttributesDefaults[cellspacing]=1
Where CustomAttributesDefaults[cellpadding] is default value for attribute that appears in insert table pop-up in OE.
Clear all the cache.
Since now you can use cellpadding and cellspacing, you can also add "summary" like:
CustomAttributes[]=summary CustomAttributesDefaults[summary]=Default
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog