[dokuwiki] Re: Error in css.php and js.php

Andreas Gohr wrote:
Chris Smith writes:

The March release allows substitutions in CSS. Some (many?) plugins that provide their own styles may make use of the substitutions to match the wiki colour scheme.

But AFAIR we agreed that this is bad style and plugins should not rely on the existance of any of the replacement patterns in the default template's style.ini because they may not be available in other templates.
I don't recall that. I can understand why it makes sense, however if a plugin makes use of colour it needs some mechanism to merge with those of the chosen template and hooking into some basic set of substitutions seems better to me than requiring the wiki admin to edit the plugin style.css.

Perhaps a minimum set of substitutions should be defined - using meaningful names.
e.g.


__background__
__background_hilight__
__text__
__text_hilight__
__border__

or allow some CSS substitutions to be defined in local.php

$conf['css']['background'] = ...;


Chris -- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: