PmWikiSkinsWhat is itWell, that's how I modified my original PmWiki configuration to allow changing the layout and colours of the site on a per-user basis. The following is a very detailed description of every steps involved, so don't be put off by the length of this article, it's actually quite simple. Basics of skinsI used the cookbook recipe described on the PmWiki website but had to modify a couple of things to make it work for me. From the official website:
Create skinsCreate new directories under pub/skins/blue/blue.css pub/skins/blue/blue.tmpl If you only want the CSS style sheets to change and keep a single template for your whole site, create links to cp -al pub/skins/pmwiki/pmwiki.tmpl pub/skins/blue/blue.tmpl Correct the original templateThere what I believe to be a small error in the original pmwiki template that needs fixing, otherwise your skins based on that template won't work. At the top of the <link rel='stylesheet' href=' by <link rel='stylesheet' href=' InstallationJust download the SkinChange script from the link above, install it in as
Line 3 forces the The Line 10 is optional and creates a new directive Line 11 is also optional and allows a new ConditionalMarkup to be used with skins: (:if skin blue:)Nice blue sky today!(:if:) (:if skin green:)Good day Nature lovers!(:if:) (:if skin pmwiki:)Enough style!(:if:) For your selected skin, we get Enough style!. Using in your Wiki pagesTo create the links that will allow a change of skin for the user, see the CookBook Skins reference above. The links on my site follow the recommendations on that Cookbook page: * [[{$Name}?setskin=blue | Blue]] * [[{$Name}?setskin=green | Green]] * [[{$Name}?setskin=pmwiki | Basic Text]] becomes Leave your comments below |