devel:event:tpl_content_display
Table of Contents
TPL_CONTENT_DISPLAY
- Description:
- Post process the XHTML output
- DefaultAction:
- Sends the XHTML to the browser
- Preventable:
- yes
- Added:
- 2006-04-25
The event is signaled by tpl_content() in inc/template.php after receiving the output on completion of the TPL_ACT_RENDER event. Use it to post process the XHTML output before it is sent to the client browser.
Passed Data
The passed Doku_Event object has the fields: $data
and $result
.
The $data
field contains the XHTML of content as a string.
The BEFORE event handler can modify the XHTML before outputting and it let you prevent the default action.
The $result
is always null because the default action ptln() returns nothing, but only send to the browser. The AFTER handler is (default) called after sending to the browser.
See also
- Code related to this event used in any DokuWiki's files, plugins and templates
devel/event/tpl_content_display.txt · Last modified: 2018-12-08 16:12 by torpedo