[imp] Custom menu links via menu.php - or registry.local.php?
Brett Charbeneau
brett at wrl.org
Tue Feb 11 07:53:02 UTC 2014
Quoting Ralf Lang <lang at b1-systems.de>:
> 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
MANY thanks for the response, Ralf! It was just the info I needed
to get things going.
I'm grateful for your taking the time to help out!
--
********************************************************************
Brett Charbeneau
Network Administrator
Williamsburg Regional Library
7770 Croaker Road
Williamsburg, VA 23188-7064
(757)259-4044 www.wrl.org
(757)259-4079 (fax) brett at wrl.org
********************************************************************
More information about the imp
mailing list