It's better when it's simple

User Tools

Site Tools



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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
devel:event:action_show_redirect [2009-09-11 18:38]
devel:event:action_show_redirect [2018-12-08 14:56] (current)
torpedo doc updated according to issue #2615
Line 11: Line 11:
 ===== Passed Data ===== ===== Passed Data =====
 +The passed [[xref>Doku_Event]] object has the fields: ''$data'' and ''$result''.
 +The ''$data'' field is an array with the entries:
   * $data['id'] -- the page id the redirect goes to   * $data['id'] -- the page id the redirect goes to
   * $data['fragment'] -- a fragment identifier if any (hash part of the URL)   * $data['fragment'] -- a fragment identifier if any (hash part of the URL)
-  * $data['preact'] -- the action before it was changed to ''show''+  * $data['preact'] -- the (uncleaned) action before it was changed to ''show''
-===== Plugins handling this event =====+The BEFORE event handler let you modify the ''$data'' field or stop with ''preventDefault()'' the default action [[xref>act_redirect_execute()]].
-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 ''$result'' field is always null, and never set to a value by the default action. The AFTER event handler is default not reached, but only when default action is prevented.
-  * [[plugin:include]], [[plugin:sioc]] 
 ===== See also ===== ===== See also =====
 +  * [[codesearch>ACTION_SHOW_REDIRECT|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/action_show_redirect.1252687127.txt.gz · Last modified: 2009-09-11 18:38 by HåkanS