[imp] Custom menu links via menu.php - or registry.local.php?

Ralf Lang lang at b1-systems.de
Thu Feb 6 22:13:48 UTC 2014


On 06.02.2014 20:31, Brett Charbeneau wrote:
> 
>      I found another wiki entry
> 
> http://wiki.horde.org/CustomizeMenu
> 
>       which appears to indicate that a registry.local.php needs to be
> created and additional code entered there. So I created a file by that
> name and entered the code below, but still no joy.
> 
> 
> // Custom Menus
> 'questions' => array(
>        'name' => _("Questions?"),
>        'status' => 'heading',
>    ),
> 
>      'faq' => array(
>        'webroot' => FAQ/',
>        'name' => _("FAQ"),
>        'status' => 'active',
>        'target' => '_blank',
>        'menu_parent' => ' Questions?',
>        'fileroot' => '/tmp',
>        'icon' => ' QA.gif'
>   ),

Your registry.local.php needs to start with  <?php
A real-world registry.local.php entry would be
---------------------------------------------------
<?php
$this->applications['mywebsite'] =
array('name' => 'Website', 'status' => 'link', 'url' =>
'http://www.ralf-lang.de', 'menu_parent' => 'others', 'target' => '_new');


-----------------------------------------------
menu_parent points to the group/heading where the item should be placed.

You can add own headings like so:

$this->applications['mytools'] = array('name' => 'My Tools', 'status' =>
'heading');


-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.horde.org/archives/imp/attachments/20140206/fe2a3fc3/attachment.bin>


More information about the imp mailing list