Martin Tschofen wrote:
I'm stuck with this. I've got two different action plugins. One that overrides "index" and the other a new command all together called "collect".
In my "index" command I don't mess with the $ACT variable and everything works just as it should. So do I need to change $ACT at all?
In the "collect" action plugin, dokuwiki complains that it doesn't recognize the 'collect' command. I'm not clear about the right way to register the command itself. I think I need to do it with the ACTION_DISPATCH event: $controller->register_hook('ACTION_DISPATCH', $this, 'collect', NULL); $controller->register_hook('TPL_ACTION_HTML', $this, 'find_pages', NULL);
function collect($param, &$event){ if ($event->data != 'collect') return; }
That doesn't work. Thanks in advance...martin
It doesn't work? or it doesn't do anything?
function register(...) { $controller->register_hook('ACTION_DISPATCH', $this, 'collect', NULL); } function collect(...) { if ($event->data != "collect") return;
$event->preventDefault(); $controller->register_hook('TPL_ACTION_HTML', $this, 'find_pages', NULL); }
Cheers,
Chris
-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist