|
SkinChange<< Ref Count | Cookbook-V1 | Search Exclude Pages >> Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.
For the equivalent recipe for PmWiki 2, see Cookbook.SkinChange QuestionHow can I allow users to change their skin based on a query parameter or cookie setting? AnswerThe Attach:skinchange.php script enables query parameters of the form " To use this script, in the config.php file simply define an array called $PageSkinTemplates that indicates the template file to be used for each skin name, and then do $PageSkinTemplates = array(
'pmwiki' => 'pub/skins/pmwiki/pmwiki.tmpl',
'classic' => 'pub/skins/classic/classic.tmpl',
'jh' => 'pub/skins/jhskin/jhskin.tmpl');
@include_once('local/skinchange.php');
Some example links using this script:
Contributors
pmwiki-2.2.0-beta68 -- Last modified by {{Henning}}
|