DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:tpl_act_render

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
devel:event:tpl_act_render [2012-07-18 21:45] – fix link pageredirector Klap-indevel:event:tpl_act_render [2018-12-08 16:10] (current) – doc updated according to issue #2615 torpedo
Line 3: Line 3:
 ---- dataentry event ---- ---- dataentry event ----
 Description:    Output XHTML before and/or after a page Description:    Output XHTML before and/or after a page
-DefaultAction:  Outputs XHTML for the choosen [[devel:environment#$ACT]]+DefaultAction:  Outputs XHTML for the choosen $ACT command
 Preventable:    yes Preventable:    yes
 Added_dt:       2006-04-25 Added_dt:       2006-04-25
Line 11: Line 11:
  
 ===== Passed Data ===== ===== Passed Data =====
-$data contains the contents of the [[devel:environment#$ACT]] variable.+The passed [[xref>Doku_Event]] object has the fields''$data'' and ''$result''.
  
-===== Plugins handling this event =====+The ''$data'' field contains the contents of the [[devel:environment#$ACT]] variable. The ''$ACT'' variable is assigned by reference, so updating ''$data'' will update ''$ACT'' as well.
  
-The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.+The BEFORE event handler can modify the ''$data'' field to change the action command and the default action [[xref>tpl_content_core()]] can be prevented. This function handles all default content XHTML generation actions or the registered [[devel:event:TPL_ACT_UNKNOWN]] ones. 
 +The ''$result'' field is set to true by the default action if defined $ACT was handled, false otherwise. The AFTER handler is finally called.
  
-  * [[plugin:bloglinks]], [[plugin:blogmeta]], [[plugin:bookmarkme]], [[plugin:classificationbanner]], [[plugin:database]], [[plugin:discussion]], [[plugin:fckg|dokuwikifck]], [[plugin:fckglite|fckglite]], [[plugin:force_preview]], [[plugin:formatplus]], [[plugin:fullindex]], [[plugin:indexmenu]], [[plugin:indexmenu2]], [[plugin:linkback]], [[plugin:ondeniedlogin]], [[plugin:pageredirector]], [[plugin:publish]], [[plugin:searchformgoto]], [[plugin:sidebar]], [[plugin:toc]], [[plugin:userannotations]] 
-   
  
 ===== See also ===== ===== See also =====
  
 +  * [[codesearch>TPL_ACT_RENDER|Code related to this event]] used in any DokuWiki's files, plugins and templates
   * [[devel:Action Plugins]]   * [[devel:Action Plugins]]
   * [[devel:Events]]   * [[devel:Events]]
   * [[devel:event:TPL_CONTENT_DISPLAY]]   * [[devel:event:TPL_CONTENT_DISPLAY]]
devel/event/tpl_act_render.1342640703.txt.gz · Last modified: 2012-07-18 21:45 by Klap-in

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