[dokuwiki] Re: plugin and config mgrs

  • From: Ben Coburn <btcoburn@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 18 Jun 2006 22:29:21 -0700


On Jun 18, 2006, at 8:48 PM, Chris Smith wrote:

Ben Coburn wrote:

I don't remember why it ended up like that. Unless there are objections I will move the 'title' attribute back into the 'label' tag itself.


I don't think its straight forward to put it on the label tag. The label tag is generated by the setting class - which doesn't know the php variable name (e.g. $conf). Putting it on a tag which wraps the label seems the right way to go, there may be a better choice of tag than <a>.


Chris,
Your 'setting->html' method already gets a reference to the plugin so '$this->_config->_name' would just become '$plugin->_config->_name'. However, I now remember why I wrapped the label tag instead of modifying it. The tool-tip I was adding should always appear regardless of how a setting class overrides the 'html' method.


Regards, Ben Coburn


------------------- silicodon.net -------------------

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

Other related posts: