register_hook('DOKUWIKI_STARTED', 'AFTER', $this, 'publish_configuration'); $controller->register_hook('TPL_CONTENT_DISPLAY', 'BEFORE', $this, 'inject_tooltip_html'); } public function publish_configuration(Doku_Event $event, $param) { global $JSINFO; $JSINFO['selectionsearch_minlength'] = $this->getConf('min_query_length'); } public function inject_tooltip_html(Doku_Event $event, $param) { global $ACT; global $lang; $use_on_actions = explode(',', $this->getConf('use_on_actions')); if (!in_array($ACT, $use_on_actions)) return; $target = ($this->getConf('new_window') == 1) ? ' target="_blank"' : ''; $event->data .= << $lang[btn_search] HTML; } }