[pmwiki-users] wikilib.d for a skin

noskule noskule at gmx.net
Fri Mar 17 07:18:25 CST 2006


Hans schrieb:

>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")));
>
>
>  
>
JO, works correctly great :-)

>Best, 
>~Hans                           
>
>
>  
>





More information about the pmwiki-users mailing list