devel:event:tpl_toc_render
Table of Contents
TPL_TOC_RENDER
- Description:
- Pre-/postprocess the TOC
- DefaultAction:
- Outputs the TOC
- Preventable:
- no
- Added:
- 2008-08-30
This event is signalled by tpl_toc() in inc/template.php. You can use this event to add/remove items from the TOC.
Passed Data
The passed Doku_Event object has the fields: $data
and $result
.
The $data
fields contains an array holding the TOC as loaded from the metadata. There is no default action. In BEFORE and AFTER event handler the ToC array can be modified. The $result
is never set, so is always null.
See also
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/tpl_toc_render.txt · Last modified: 2018-12-08 16:13 by torpedo