DokuWiki

It's better when it's simple

User Tools

Site Tools


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

devel/event/tpl_toc_render.txt · Last modified: 2018-12-08 16:13 by torpedo

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