• 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.
The ActionTrackerPlugin comes with a basic css stylesheet for the tables it generates. These are uggly -- which is worth a bug item in itself -- and don't match the current skin.

The NatSkin comes with 12 styles each of which has an own look and feel. It has support for a set of plugins that add css classes to their output so that the plugins match the style of the skin. Ergo the skin must be able to override any base definitions of a plugin's css.

Unfortunately the addToHEAD() api of the twiki core does not allow to specify where the call will add the stuff into the header and defaults to append it. This in effect will override the skin's css efforts which it should not as the skins should have hightest precedence.

We need to add another parameter to addToHEAD() to either prepend or append to the HEAD. Then all plugins that make use of this api need to change. Some of my plugins do not use addToHEAD() at all just for this reason and add their css to the HEAD on their own. If the api would allow to prepend to the HEAD this function would be much more usefull. MD


This topic was lost from the lists due to not having a codebase field. Rediscovered 3/2/07. Just set it to "No Action" if it is dead. It sounds like something that should be disucssed in codev, though.

CC


addToHead is used by plugins. It is more common for skins to override plugin styles, than for plugins to override plugin styles.

The simplest of rules would then be that addToHead should be always the first style element below the <base> tag.

-- AC

Hmmm. This is a deeper issue; the html headers are stored in a hash, which is inherently unordered. So the action here is:

  1. Move the html headers in TWiki.pm to an ordered collection (array)
  2. Expose the full headers collection via an appropriate API
  3. Deprecate addToHEAD

Just waiting for someone to do it....

CC

This proposal has changed somewhat over time - see TWiki:Codev.ProcessAddToHeadAdds

-- SvenDowideit - 31 Mar 2008

ItemTemplate
Summary Skins cant override css definitions of plugins
ReportedBy TWiki:Main.MichaelDaum
Codebase

SVN Range Mon, 13 Mar 2006 build 9258
AppliesTo Engine
Component

Priority Enhancement
CurrentState Confirmed
WaitingFor Someone to do it
Checkins

TargetRelease n/a
ReleasedIn

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