DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:template_pagetools_display

This is an old revision of the document!


TEMPLATE_PAGETOOLS_DISPLAY

Description:
Lets the pagetools in supported templates be modified.
DefaultAction:
The default pagetools are shown
Preventable:
yes
Added:
2013-11-18

This event is signalled by templates that implements it. For example, the default 'dokuwiki' template implements the trigger in lib/tpl/dokuwiki/main.php and lib/tpl/dokuwiki/detail.php. Handlers can use it to modify and extend the pagetools.

Passed Data

An array $data with two entries is passed:

  • $data['view'] with the value 'main' or 'detail'
  • $data['items'] with an array of the items which will displayed

The global config array contains the name of the active template in $conf['template'].

Templates triggering this event

The following templates trigger this hook.

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

  • none

See also

devel/event/template_pagetools_display.1384818200.txt.gz · Last modified: 2013-11-19 00:43 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki