[commits] [Wiki] changed: PopulatingYourFirstModule

Wiki Guest wikiguest at horde.org
Wed Feb 27 02:55:47 UTC 2013


guest [99.234.194.64]  Wed, 27 Feb 2013 02:55:47 +0000

Modified page: http://wiki.horde.org/PopulatingYourFirstModule
New Revision:  13
Change log:  Side menu instructions

@@ -57,8 +57,24 @@

  </code>

  ++ Side Menu
+
+1. In the horde config/registry.d/<module>.php you added for your  
module, add sidebar entries:
+<code>
+$this->applications['<module>-menu'] = array(
+    'status' => 'sidebar',
+    'sidebar_params' => array(
+        'id' => 'menu',
+    ),
+    'app' => '<module>',
+    'menu_parent' => '<module>',
+);
+</code>
+
+2. Then copy and paste the sidebarCreate() function from, e.g.  
kronolith/lib/Application.php, into <module>/lib/Application.php.
+3. Edit it to do what you want. The id in your sidebar_params above  
will match the $params['id'] that gets passed in.
+

  + Calling procedure at entering the application

  If a module is entered via the side-menu, usualy the url to the  
module-folder was provided. The link ist  
http://<myHordeInstallation>/<mymodule> without any file suffix. So  
the calling procedure starts by executing the index.php on the  
webserver.



More information about the commits mailing list