How to add alternate stylesheets

Create a wikiconfig_local.py in your base folder with a Config class extending Config.

After this, create an attribute called stylesheets (in a list).

e.g.:

from wikiconfig import Config as WikiConfig


class Config(WikiConfig):
    stylesheets =  [('screen', 'http://www.moinmo.in/moin_static193/modernized/css/common.css', 'MoinMoin 1.9.3 css', True)]


MOINCFG = Config

Usage: (media, url, title, alternate_stylesheet)

After this, you are done! ;)

MoinMoin: DiogenesAugusto/CreatingAlternateStyleSheet (last edited 2010-08-18 22:48:44 by DiogenesAugusto)