[pmwiki-users] Skins and wikilib.d

DaveG pmwiki at solidgone.com
Thu May 24 22:35:28 CDT 2007


>> skins can have their own wikilib.d directories. This seems to be a great 
>> place to store wiki specific pages, etc. 
> Out of curiosity, what do you mean by "wiki specific pages"?
That would be a typo. I meant "skin pages".

<snip>

> Normally the above code goes into the skin's skin.php file,
> so __FILE__ returns the location of the skin.php file.  
> It follows then that dirname(__FILE__) is the directory
> of the skin itself, and to that we add "/wikilib.d/{\$FullName}"
> to get the specification for page files held in the skin's
> wikilib.d/ subdirectory.
What does the {\FullName} do? Also, I assume the reason we can't sue 
$SkinDir is because we need the internal server path rather than the 
http:// style path?

> Once we know where the page files are at, we now want
> to splice it as the second-to-last entry in $WikiLibDirs.
> The last entry of $WikiLibDirs is nearly always the
> farm's wikilib.d/ directory; we want the skin's wikilib.d/
> to appear just before that so that page files provided by the
> skin get precedence.
Ah, that's the key -- ordering the wikilib directories for precedence.

> Hope this helps.
It does thanks. I'll add some of this to the wiki.




More information about the pmwiki-users mailing list