[dokuwiki] Re: variable name instead of text in admin configuration

  • From: Gunther Pilz <dokuwiki@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Wed, 05 Sep 2007 15:53:00 +0200

Hello Ben!

Thanks for your reply, but

Ben Coburn schrieb:
> 
> On Sep 4, 2007, at 06:04, Gunther Pilz wrote:
> 
>> Hello!
>>
>> For my navmenu template I have a subdir 'conf' with a 'default.php' and
>> 'metadata.php' and also a subdir 'lang' with subdirs 'de' and 'en' each
>> with a settings.php.
> 
> Yes, this is done to avoid collisions between plugin configurations.

I don't have two plugins. In my case there is one template and one
plugin. And as far as I understand things, the configuration settings go
into

 $conf[tpl][tpl_name][variable]
 $conf[plugin][plugin_name][variable]

Everything works fine except the thing that my text for the admin config
isn't recognized.

eg.

in lib/tpl/navmenu/conf/default.php: $conf['enabled'] = 1;
in lib/tpl/navmenu/conf/metadata.php: $meta['enabled'] = array('onoff');
in lib/tpl/navmenu/lang/de/lang.php: $lang['enabled'] = 'Menüfunktion
ein-/ ausschalten';

But in my admin config appears:
tpl navmenu enabled

And I have no idea why or what's wrong?

Regards, Gunther
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: