[pmwiki-users] Path to skins question
JB
jbit at bitlink.com
Tue Nov 7 12:57:11 CST 2006
* Hans wrote, On 11/7/2006 12:26 PM:
> I thought I try and move in my farm setup pmwiki into a folder outside
> public_html/, and have the fields and the skins inside it.
> This works but no styling is applied.
> I can't get pmwiki to see the skin folder.
> How can I redefine the $SkinDirUrls array in farmconfig.php
> to point to the skin directory?
Do not use "SkinDirUrls" - I think that is spelled wrong.
use "$SkinLibDirs".
Skin CSS and skin image files MUST be publicly available.
You can put the skin tmpl and skin php files anywhere.
This means that one skin can be comprised of 1 or 2
directories.
The $SkinLibDirs array index points to where the directory
is located in the file system. The $SkinLibDirs array value
points to a url for the publicly accessible files. They can
point to the same location, except the index is a file path
and the value is a url.
You can put skin css and images in one location and the
skin (tmpl and/or php) files into another location.
A skin is "found" when it finds a directory named for the skin
in the $SkinLibDirs array index.
It helps to looks at the PMWiki source code for function
SetSkin in file scripts/skins.php.
More information about the pmwiki-users
mailing list