See Vicky's report in
TWiki:Plugins.TablePluginDev
:
I'm having difficulty making the TABLEATTRIBUTES setting in my WebPreferences work.
Set TABLEATTRIBUTES = tableborder="1" cellpadding="3" cellspacing="3" databg="#EEEEEE, #FFFFFF" sort="off" valign="top" dataalign="left" headerbg="#C1DBFF"
The sort is off. Dataalign is not overriding extra spaces in the table cells. headerbg is unchanged from default. Is there an error in my code that I don't see? Or time to ask our TWiki admins?
-- TWiki:Main.VickiBrown
- 20 Jul 2007
Try out:
- Set TABLEATTRIBUTES = tableborder="4" cellpadding="10" cellspacing="10" databg="#ff00ff, #ffff00" sort="off" valign="top" dataalign="left" headerbg="#ff0000"
Table without
TABLE
tag:
Table with
TABLE
tag:
It is really a mess.
--
TWiki:Main.ArthurClemens
- 23 Jul 2007
A solution would be to let the plugin write all styles, not only for table specific
TABLE
attributes but also for the default
TABLEATTRIBUTES
attributes. These would be written as
.twikiTable { ...params... }
. If a skin needs to override these settings it could use an extra specifier, like
.patternMain .twikiTable
.
--
TWiki:Main.ArthurClemens
- 24 Jul 2007
The
TablePlugin code only writes table properties if the table has
%TABLE{}%
at the top. That seems wrong to me. Quoting from the plugin topic: The
%TABLE{...}%
settings override
TABLEATTRIBUTES
preferences settings, which override the
TABLEATTRIBUTES
Plugin settings.
That means that if
TABLE
is not used,
TABLEATTRIBUTES
settings should be used, which is currently not the case.
--
TWiki:Main.ArthurClemens
- 24 Jul 2007
Currently a number of style attributes are ignored because they are set by the skin CSS. I have prepared the code to simply switch on default styling. That would leave the user in control to make a mess though.
--
TWiki:Main.ArthurClemens
- 25 Jul 2007