[dokuwiki] Plugin and Theme integration
- From: "Martin Gill" <martin@xxxxxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 28 Feb 2007 08:29:13 -0000 (UTC)
Hi all,
One of the things I noticed when I was creating my own theme was the
problem of integrating plugins into my theme, each plugin may use it's own
css and that upset what I was doing, because the colours would clash.
There are two things I would like to suggest for discussion.
The first is to allow plugins to have their own style.ini which is
appended to the theme's style.ini. I suspect the style.ini replacement
code is actually fairly slow though (not sure, as I've not looked at how
it's parsed).
The second option, and the one I favour is to migrate the themes to a
slightly different setup.
The CSS files, become style.css.php files and proper PHP variables can
then be used. Style.ini changes to style.config.php and defines an array
of colours:
$colors['background'] = "#cccccc"; etc.
Plugins will all be required to have plugin.conf.php for all their values
(if such a file doesn't exist already) and they define their colours in
that.
The ultimate aim would be to have a colour config plugin that would allow
a each user (or just the admin) to actually completely customise the
colours without having to edit a single file, and consequently without
having to know anything about CSS or PHP.
It would read the merged colours array from the theme, adn all the plugins
adn would allow the user to change the vales, then either store the
overried as part of the cookie or in the main config file. That way even
updates to plugins and themes would retain the users colour selections.
The way I imagine this working will allow for a transition period where
both the current and the new technique are valid. (I've tested just
changing all the css files to css.php and including my own colours file
and that works with the current setup)
What do people think?
Regards,
Martin
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Plugin and Theme integration
- From: Michael Klier
Other related posts:
- » [dokuwiki] Plugin and Theme integration
- » [dokuwiki] Re: Plugin and Theme integration
- » [dokuwiki] Re: Plugin and Theme integration
- » [dokuwiki] Re: Plugin and Theme integration
- » [dokuwiki] Re: Plugin and Theme integration
- » [dokuwiki] Re: Plugin and Theme integration
- [dokuwiki] Re: Plugin and Theme integration
- From: Michael Klier