How can I get a list of skins installed on a site?
The skinlist.php recipe provides a simple (:skinlist:)
directive to do this.
In your local/config.php
file, include the line:
include_once('cookbook/skinlist.php')
;
This recipe adds a (:skinlist:)
markup, which displays a list of available skins for a site.
The
array may contain custom skins to be included or excluded from the listings:
$PageSkinList
$PageSkinList['goodskin'] = 1; # add a skin the recipe doesn't seem to find $PageSkinList['baadskin'] = -2; # do not list this skin even if available
Unlisting skins is possible since version 20171115.
This recipe requires SkinChange if installed on PmWiki version 2.2.126 or earlier.
$PageSkinList
, negative numbers will delist a skin (Petko)
See SkinList-Talk
User notes : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.