Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

SkinList

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

(:skinlist:)
  • 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


Q Is there any workaround in case of nonexistant pages (Like in "Category" group)? Because I can only edit this page instead of changing the skin. But thank you for the receipt, it adds nice functionality =)

 Kriss

Category: Skins
Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:42 AM