How can I display my logo on my DokuWiki's title?

samoz picture samoz · Mar 10, 2009 · Viewed 16.8k times · Source

I have a DokuWiki and I'd like to place a logo on the title bar at the top of the page? How can I do this? Note that I am not referring to the title bar at the top of the browser, but rather the title bar on the website itself.

I tried inserting the DokuWiki syntax: {{public:logo.jpg?100x100}}, but this simply rendered as plain text and not an image.

Is it possible to put an image in the page title?

Answer

Katapofatico picture Katapofatico · Oct 15, 2012

Easy: Rename your logo as "logo.png" and place it into :wiki namespace. It will show automatically.

This solution works on template "dokuwiki" (default one on dokuwiki old stable version "Adora Belle" and in current one "Weatherwax"):

Deeper:

We can look at tpl_header.php file, lines 21&23:

// get logo either out of the template images folder or data/media folder

[...]

$logo = tpl_getMediaFile(array(':wiki:logo.png', 'images/logo.png'), false, $logoSize);

Ok: tpl_getMediaFile() function will look for a file logo.png in media namespace called wiki.

So I go to dokuwiki File Manager and I upload my logo.png file on wiki namespace. I refresh page and I smile.

solution with dokuwiki File Manager

Hope That Helps