[dokuwiki] Re: How to Add a Logo to the Default Template

  • From: "Robert R." <wiki@xxxxxxxxx>
  • To: <dokuwiki@xxxxxxxxxxxxx>
  • Date: Fri, 21 Oct 2011 14:37:59 +0200

Hello Axel!

On Mon, 17 Oct 2011 15:50:59 +0200, Axel Werner wrote:
[...]
In http://www.dokuwiki.org/devel:templates i read something about
mytpl/conf/default.php - But it seems its not working if i add the
variable definition there.

I am using this in my template and it is working for me.
http://www.dokuwiki.org/template:doogie

If you also add a conf/metadata.php a dokuwiki admin can even configure this via dokuwiki's builtin configuration manager.

-----------<doogiestpl/conf/default.php>-------------
<?php
/* configuration for navbar in Doogies Template
 * (This is a piece of PHP code so PHP syntax applies!)
 */

# list of tabs in the navigation bar (title of tab => name of linked wikipage)
$conf['navbar_tab1_title']   = 'Wiki';
$conf['navbar_tab1_target']  = 'Start';
$conf['navbar_tab2_title']   = 'Blog';
$conf['navbar_tab2_target']  = 'BlogPage';
[...]
----------------------------------------------------

-----------<doogiestpl/conf/metadata.php>-------------
<?php
/* metadata for navbar configuration of Doogies Template
 * (This is a piece of PHP code so PHP syntax applies!)
 */

$meta['navbar_tab1_title']   = array('string');
$meta['navbar_tab1_target']  = array('string');
$meta['navbar_tab2_title']   = array('string');
[...]
----------------------------------------------------

I hope this helps,
  Yours, Robert
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: