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');
Notes
This recipe adds a (:skinlist:) markup, which displays a list of available skins for a site.
Example
- This recipe was last tested on PmWiki version:
- This recipe requires at least PmWiki version: and (any other recipes)
- This recipe, version...... was installed here the...(date)
See Also
Contributors
I had some problems when switching to the "print" skin.
So I added
if (!is_array($ignore_skins) || !in_array($skin,$ignore_skins))
on line 19, and the variable $ignore_skins to the global declaration.
Thus, I can make an array with the skins I don't want to display like this:
$ignore_skins=array('print','this','that');
-Sane Traitor