[Pmwiki-users] Change logo to replacement HTML?

J. Perkins jason
Tue Feb 24 19:27:42 CST 2004


Now that I've had a chance to use it, I can say that the new template 
system is a fantastic improvement. Kudos to whoever suggested it and to 
Pm for making it happen so quickly.

A comment about the wiki logo: some of the sites I have set up don't use 
an image, but rather a snippet of HTML for the logo. Working off the 
default PmWiki skin, this requires me to create a whole new template 
with the <img> tag replaced, rather than simply replacing a value in 
config.php. Would it be possible to introduce a couple of new variables?

$PageLogoHref = $ScriptUrl;
$PageLogoFmt = "<a href='$PageLogoHref'><img src='$PageLogoUrl' 
border='0' alt='$WikiTitle' /></a>";

And use $PageLogoFmt in the templates instead of $PageLogoUrl? 
Customizing the logo is probably the one thing that everyone wants to 
do, this should make it more flexible -- but also more opaque. The 
example given in PmWiki/InitialSetupTasks will still work though, so 
most users should be okay. Let me know what you think.

Someone might have caught this already, but in 0.6.2 the href on the 
logo image is hardcoded to '/wiki/PmWiki/PmWiki', which works on Pm's 
server I'm sure, but is liable to fail elsewhere.

Jason




More information about the pmwiki-users mailing list