MrClow/dokuwiki-template-2011 — Issue #25: Discussion: How to add logo?
Author: selfthinker
Created: 2012-01-14 18:50:14+00:00
State: open

I've currently added the logo using `tpl_getFavicon(false, 'logo.png')` (in main.php) together with the remark below:
obviously don't use tpl_getFavicon, but make a new function (or use a config option?)

I used tpl_getFavicon because it already makes it easier for farms (because it takes the file from the data/media root directory if it exists, otherwise from the template's image directory). Obviously the name "tpl_getFavicon" is not ideal and that core function could be rewritten to be more generic. (BTW, the one who messed that up was me, because I didn't think that far when I created it.)

Another option would be to add another function in tpl_functions.php (or in core?) to do that or something similar.

If we'd go with a config option, I'm not sure how that could work, especially to make it fool-proof (i.e. not just a simple text box). But a config option might work with a simpler additional function!?