[cvs] [Wiki] changed: CustomizeMenu

Wiki Guest wikiguest at horde.org
Wed Jun 25 13:05:04 UTC 2008


guest [206.192.68.114]  Wed, 25 Jun 2008 09:05:04 -0400

Modified page: http://wiki.horde.org/CustomizeMenu
New Revision:  2.1
Change log:  Updating for Horde Webmail 1.1

@@ -11,16 +11,25 @@
  # Arbitrary items: can be configured in {{config/menu.php}}. Copy  
{{menu.php.dist}} to {{menu.php}}, read the comments in the file  
header, and create your own menu entries

  ++ Sidebar

-To add new items to the sidebar menu, you need to edit  
{{config/registry.php}}. Make sure to read the comments at the top of  
{{registry.php}} carefully. The only required configuration values for  
a menu entry are {{'name'}} and {{'status'}}, but only the  
{{'webroot'}} turns it into a useful entry.
+To add new items to the sidebar menu, you need to edit  
{{config/registry.php}}. Make sure to read the comments at the top of  
{{registry.php}} carefully. The only required configuration values for  
a menu entry are {{'name'}} and {{'status'}}, but  {{'webroot'}} and  
{{'fileroot'}} are useful entries.

  Let's say you want to add a link to your intranet:
  <code type="php">
+// Custom Menus
  $this->applications['intranet'] = array(
-    'webroot' => '/intranet',
-    'icon' => '',
-    'name' => 'Intranet',
-    'status' => 'active',
+     'name' => _('Intranet Links'),
+     'status' => 'heading',
+     'icon' => '',
+);
+$this->applications['intranet_link_1'] = array(
+ 'webroot' => 'https://www.example.com,
+ 'name' => _("Example Link"),
+ 'status' => 'active',
+ 'target' => '_parent',
+ 'menu_parent' => 'intranet',
+ 'fileroot' => '/tmp',
+ 'icon' => '',
  );
  </code>
-This adds a top-level menu entry with the link text "Intranet" and  
the link target {{/intranet}} to your sidebar. We also set the  
{{'icon'}} value to an empty string. This is to keep the browser from  
loading an icon from a default location, creating a lot entries in  
your web server's error log. If you put an icon with a size of 16x16  
pixel somewhere on your web server, you can put the (web) location  
into the {{'icon'}} value, and it will be displayed in the menu.
+This adds a top-level menu entry with the link text "Intranet Links"  
and a sub link to {{https://www.example.com}} to your sidebar. We also  
set the {{'icon'}} value to an empty string. This is to keep the  
browser from loading an icon from a default location, creating a lot  
entries in your web server's error log. If you put an icon with a size  
of 16x16 pixel somewhere on your web server, you can put the (web)  
location into the {{'icon'}} value, and it will be displayed in the  
menu.


More information about the cvs mailing list