DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:action_show_redirect

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:action_show_redirect [2009-09-11 18:38] HåkanSdevel:event:action_show_redirect [2018-12-08 14:56] (current) – doc updated according to issue #2615 torpedo
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.txt · Last modified: 2018-12-08 14:56 by torpedo

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