Cookbook

PmWiki

pmwiki.org

Summary: List skins installed on a site
Version: 20171115
Prerequisites: PmWiki 2.2.56, SkinChange
Status: Stable
Maintainer: Petko
License: Unknown
Categories: Skins PHP72 PHP74
Users: (view? / edit)
Discussion: SkinList-Talk

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.

(:skinlist:)

Configuration

The $PageSkinList array may contain custom skins to be included or excluded from the listings:

$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.

Notes

This recipe requires SkinChange if installed on PmWiki version 2.2.126 or earlier.

Release notes

See Also

Contributors

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.

Page last modified on January 09, 2023, at 07:02 AM
Search PmWiki