[pmwiki-users] Path to skins question
Patrick R. Michaud
pmichaud at pobox.com
Wed Nov 8 12:35:53 CST 2006
On Wed, Nov 08, 2006 at 05:58:10PM +0000, Hans wrote:
> Wednesday, November 8, 2006, 5:10:53 PM, Patrick wrote:
> > The key question to resolving this is to know if the page is
> > being displayed with or without the skin template. If you're
> > getting a "skin not found" error, that indicates a problem with
> > the filesystem path (the key). If the page is displaying
> > but none of the .css and/or .gif images are loading, that's
> > a problem with the url portion and/or $FarmPubDirUrl.
>
> The problem lies with the filesystem path, i.e. "skin not found"
> error, despite what I wrote earlier. At least that is the problem
> occurring now. Sorry for the confusion.
>
> And from what you wrote I take that for the keys in $SkinLibDirs
> PmWiki wants absolute filepaths.
PmWiki doesn't care, it's PHP that seems to require absolute filepaths.
> I also take that Pmwiki only knows $FarmD as an absolute filesystem path?
Well, PmWiki knows other paths as well, via various system variables
through PHP. For example, you could potentially use
$_SERVER['DOCUMENT_ROOT'] to get the absolute filepath
$FarmPubDirPath = $_SERVER['DOCUMENT_ROOT'] . '/farm/pub';
$FarmPubDirUrl = '/farm/pub';
and then later when setting $SkinLibDirs
"$FarmPubDirPath/skins/\$Skin" => "$FarmPubDirUrl/skins/\$Skin"
Pm
More information about the pmwiki-users
mailing list