register_hook('TPL_ACT_UNKNOWN','BEFORE', $this, 'nsexport'); $controller->register_hook('ACTION_ACT_PREPROCESS','BEFORE', $this, 'act'); } public function act(Doku_Event $event , $param) { if ($event->data !== 'nsexport') { return; } $event->preventDefault(); $this->run = true; } public function nsexport(Doku_Event $event, $param) { if (!$this->run) return; // stops default action handler $event->preventDefault(); if ($this->getConf('autoexport')){ $id = ' plugin_nsexport__started'; echo $this->locale_xhtml('autointro'); }else{ $id = ''; echo $this->locale_xhtml('intro'); } echo '
' . $this->getLang('packer___ziphtml___intro') . '