01297: make {$PageLogoUrl} work

Summary: make {$PageLogoUrl} work
Created: 2012-10-02 15:00
Status: Closed - added for 2.3.18.
Category: Feature
From: simon

Description: Make {$PageLogoUrl} and {$WikiTitle} visible Layout Variables.





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}
  • "/pmwiki/pub/skins/pmwiki/pmwiki-32.svg"

That works better than "https://www.pmwiki.org/wiki /pmwiki/pub/skins/pmwiki/pmwiki-32.svg" -- thanks simon


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