DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

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