• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4409: TABLEATTRIBUTES setting leads to unpredictable styling.

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TablePlugin Urgent Closed   minor  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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:

AAA
123
234
345

Table with TABLE tag:

AAA
123
234
345

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

ItemTemplate
Summary TABLEATTRIBUTES setting leads to unpredictable styling.
ReportedBy TWiki:Main.ArthurClemens
Codebase

SVN Range TWiki-4.1.2, Thu, 19 Jul 2007, build 14438
AppliesTo Extension
Component TablePlugin
Priority Urgent
CurrentState Closed
WaitingFor

Checkins TWikirev:14468 TWikirev:14470 TWikirev:14471
TargetRelease minor
ReleasedIn

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2007-07-25 - TWikiUserMapping_ArthurClemens
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback