----
FIXME: This page seems deprecated as uploading a file named "logo.png" into wiki namespace, or at wiki's root replaces the template's logo.
----
===== Having an image instead of title text in the upper-right corner =====
You can see this one in action here: **FIXME LINK CRASHED!** http://deshalbfrei.immermusik.de/
in tpl/default/main.php change:
to
and in config/dokuwiki.php add a new variable:
$conf['logo'] = '';
The additional variable is necessary because otherwise the "" would be shown in the HTML Tag...
Have fun!
peace, Christoph Neuroth 2005-05-08
> not working for me...to img src path I had to prepend 'data' dir so it looks like
> $conf['logo'] = '';
> thanks for the tip, Petr Smrcka 2005-08-24
>> For me it had to be src="_media/logo.png", maybe due to a newer version?
>> DOK 2009-09-02
>>> And on another install with an even newer version I had to go src="/dokuwiki/data/media/wiki/logo.jpg", which bypasses all php alltogether...
>>> DOK 2009-09-11
> Thanks for documenting this.
> running a closed wiki I needed to use a different kind of url to access the image.
> I copied this from the way images are referenced in the body:
> /dokuwiki2/lib/exe/fetch.php?w=&h=&cache=cache&media=yourlogo.png
> It worked at least in CSS.
> Anybody knows a nicer way to call fetch w/o hardcoding the wiki dir?
> Ferdinand Soethe, 2007-02-03
> Here is the alternative to the approach above:
> Adding something like
> background-image: url(/dokuwiki2/lib/exe/fetch.php?w=&h=&cache=cache&media=yourlogo.png);
> background-repeat:no-repeat;
> to the layout.css will add the logo as a background to the header
> Ferdinand Soethe, 2007-02-03
----
For dokuwiki-2009-12-25c I had to do the following to get this to work. Please note that my dokuwiki is in htdocs/mydoku :
1. Created htdocs/mydoku/images and moved logo.jgp into it (I had read permission problems if I put the file in htdocs/mydoku/data/media)
2. Specified the variable as:
$conf['logo'] = '';
It is tricky to debug because, until you get it all right, the image is either replaced with a ? or does not appear at all. If you get a ?, try to Download Image or do some other manipulation on it. That can give a clue to the problem.
'Hope that this helps.
hackerbie@gmail.com 29 April 2010
----
\\
In my case, using the following made ours work:
$conf['logo'] = '';
Took a while but we got there...Also, the dimensions had to be changed quite a bit, but that could have been due to the template we was using (mmClean)
v.2010.07a-0
**** We have also used the following: $conf['logo'] = '