[pmwiki-users] wikilib.d for a skin

Hans design at softflow.co.uk
Fri Mar 17 06:55:09 CST 2006

Friday, March 17, 2006, 12:44:45 PM, noskule wrote:
> to setup the dir i added to skin.php

> GLOBAL $WikiLibDirs;
> $WikiLibDirs = array(
>         &$WikiDir,
>         *new*
> PageStore("$FarmD/pub/skins/netstreams/wikilib.d/$FullName"),
>         *new* PageStore("$FarmD/wikilib.d/$FullName"));

I use the following in a skin.php file, having the skin config wiki
pages in skinname/wikilib.d/ as a subdirectory of the skin directory:

## automatic loading of skin default config pages
global $WikiLibDirs, $SkinDir;
    $where = count($WikiLibDirs);
    if ($where>1) $where--;
    array_splice($WikiLibDirs, $where, 0, 
        array(new PageStore("$SkinDir/wikilib.d/\$FullName")));


More information about the pmwiki-users mailing list