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 [2014-05-06 21:58] – [Plugins handling this event] new one 204.119.134.123devel: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 (uncleaned) 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:dokusioc]], [[plugin:mediasyntax]] 
  
 ===== 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.1399406332.txt.gz · Last modified: 2014-05-06 21:58 by 204.119.134.123

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