01297: make {$PageLogoUrl} work
{$PageLogoUrl}
workDescription:
Make {$PageLogoUrl}
and {$WikiTitle}
visible Layout Variables.
"{$PageLogoUrl}" "{$WikiTitle}" | "/pmwiki/pub/skins/pmwiki/pmwiki-32.svg" "PmWiki" |
This will support moving the wiki header from the template to a wiki page.
Done. Note that in some cases you may need to use the Path: prefix, like here. --Petko
* "{$PageLogoUrl}" * Path:{$PageLogoUrl} |
|
That works better than "https://www.pmwiki.org/wiki /pmwiki/pub/skins/pmwiki/pmwiki-32.svg" -- thanks simon
{$ScriptUrl}/{$PageLogoUrl} |
It depends; if your $PageLogoUrl
includes the "protocol://host", as in the default PmWiki installation, use just {$PageLogoUrl}
. If it is a relative path starting with "/", use Path:. In most cases, you wouldn't use {$ScriptUrl}
which is the "URL to the script", that is index.php or pmwiki.php. {$ScriptUrl}{$PageLogoUrl}
may work in some cases where you have CleanURLs from the document root of the server, so {$ScriptUrl}
is just the "protocol://host" part. --Petko