Summary: List skins installed on a site
Version: 20171115
Status: Stable
License: Unknown
Contents Question Answer Usage Configuration Notes Release notes See Also Contributors Comments Question
How can I get a list of skins installed on a site?
Answer
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' )
;
Usage
This recipe adds a (:skinlist:)
markup, which displays a list of available skins for a site.
Configuration
The $PageSkinList
array may contain custom skins to be included or excluded from the listings:
$PageSkinList ['goodskin' ] = 1 ;
$PageSkinList ['baadskin' ] = -2 ;
Unlisting skins is possible since version 20171115.
Notes
This recipe requires SkinChange if installed on PmWiki version 2.2.126 or earlier.
Release notes
20190903 Update for PHP 7.4 (Petko )
20171115 Update for PHP 7.2, document $PageSkinList
, negative numbers will delist a skin (Petko )
20160407 Update for PHP 5.5 (Petko )
See Also
Contributors
Maintainer: Petko
Original author: probably Pm
Comments
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.