DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:menu_items_assembly

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:menu_items_assembly [2017-11-01 23:02] – add pointers to bookcreator plugin Klap-indevel:event:menu_items_assembly [2018-12-08 15:55] (current) – doc updated according to issue #2615 torpedo
Line 8: Line 8:
 ---- ----
  
-This event is signalled by [[xref>AbstractMenu]]::getItems() (and it's children) in [[xref>/inc/Menu/AbstractMenu.php]] when when the menu in question is assembled, handlers can use it to add or remove items from the menu.+This event is signalled by [[xref>AbstractMenu]]::getItems() (and it's children) in [[xref>/inc/Menu/AbstractMenu.php]] when the menu in question is assembled, handlers can use it to add or remove items from the menu.
  
 ===== Passed Data ===== ===== Passed Data =====
Line 15: Line 15:
  
   * ''view'' defines the menu that is currently built (please refer to [[devel:Menus]] on which menus exist)   * ''view'' defines the menu that is currently built (please refer to [[devel:Menus]] on which menus exist)
-  * ''items'' contains an array of AbtractItem descendants.+  * ''items'' contains an array of [[xref>AbstractItem]] descendants.
  
 ===== Example ===== ===== Example =====
  
-An example on how to implement this event can be seen in this [[https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/pull/290/files|merge request for dw2pdf]] or [[https://github.com/Klap-in/dokuwiki-plugin-bookcreator/commit/7ab0b3409d849e39d1a4db522e1aa1727d4e6de5|commit for bookcreator]] (with javascript toggled icon)+An example on how to implement this event can be seen in this
 +  * [[https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/pull/290/files|merge request for dw2pdf]]  
 +  * or [[https://github.com/Klap-in/dokuwiki-plugin-bookcreator/commit/7ab0b3409d849e39d1a4db522e1aa1727d4e6de5|commit for bookcreator]] (icon can be toggled with javascript)
  
 See also: [[devel:menus:example]] See also: [[devel:menus:example]]
  
-===== Plugins handling this event ===== 
- 
-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. 
- 
-  * [[plugin:Bookcreator]] 
-  * [[plugin:dw2pdf]] 
  
 ===== See also ===== ===== See also =====
  
 +  * [[codesearch>MENU_ITEMS_ASSEMBLY|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/menu_items_assembly.1509573727.txt.gz · Last modified: 2017-11-01 23:02 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