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_content_display

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

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