splitbrain/dokuwiki — pull request #427 by selfthinker (2013-11-16 21:35:50+00:00)
Title: Improved pagetools event in dokuwiki template

I still don't like the `TEMPLATE_DOKUWIKI_PAGETOOLS_DISPLAY` event in the default template for two reasons:

1. Plugins would need to handle every template separately. (Sometimes that would be sensible, most times it wouldn't.)
2. Plugins would insert into both the standard pagetools and the different ones on the image detail page. (Again, sometimes that makes sense, most times it doesn't.)

This moves the template name away from the hook name into the event data (as the 'tpl' value). Therefore it moves the previous data items into the 'items' sub array. A 'view' value has also been added to describe in which template file the event was called ('main' or 'detail').

See #236 for the previous discussion.