[horde] Adding a menu link Horde 5
Ralf Lang
lang at b1-systems.de
Wed Oct 23 11:36:26 UTC 2013
On 22.10.2013 05:33, ANANT S ATHAVALE wrote:
> ----- Message from Andy Dorman <adorman at ironicdesign.com> ---------
> Date: Mon, 21 Oct 2013 10:47:24 -0500
> From: Andy Dorman <adorman at ironicdesign.com>
> Subject: Re: [horde] Adding a menu link Horde 5
> To: horde at lists.horde.org
>
>> On 10/21/2013 09:22 AM, Robert Moldenhauer wrote:
>>> Hi,
>>>
>>> Ok, I have Horde running on a machine as http://xxx.xxx.edu and I want
>>> to create a menu item under my account to connect to a webpage that
>>> allows the user to change their password and set forwards. The
>>> application runs on https://yyy.xxx.edu/cgi-bin/setup.pl, different
>>> server, outside of horde. They will be asked to login again so there
>>> is no need to pass user information. The wiki has 95% of the
>>> information I need, I just need to know the format of the entry into
>>> registry.local.php.
>>>
>>> This doesn’t seem to work:
>>>
>>> 'vacforward' => array(
>>> 'webroot' => 'https://yyy.xxx.edu/cgi-bin/setup.pl',
>>> 'name' => _("Vacation & Forward"),
>>> 'status' => 'active',
>>> 'target' => '_blank',
>>> 'menu_parent' => 'myaccount',
>>> 'fileroot' => '/tmp',
>>> 'icon' => ''
>>> ),
>>>
>>> Even though My Account appears because of Password, there is nothing
>>> else in the menu.I tried name => “vacation” thinking it was the
>>> ampersand, but that made no difference. What am I doing wrong?
>>>
>>> Robert
>>
>> Robert, I do not know if the example below will help, but we run an
>> external spam & virus filtering system called AnteSpam and the following
>> works nicely to add a new menu "AnteSpam" with menu items for the
>> various parts of the spam filtering site.
>>
>> The menu links open a new browser tab.
>>
>> I am honestly not sure why we have to specify 'fileroot', especially if
>> the AnteSpam service is not on the webmail server....But I found through
>> hard experience that without 'fileroot' my menu does not show.
>>
>> ===== registry.d/antespam.php code snippet =====
>>
>> $user = strtolower ($GLOBALS['registry']->getAuth());
>>
>> $this->applications['antespam'] = array(
>> 'name' => _("AnteSpam"),
>> 'icon' => '/themes/graphics/asicon.png',
>> 'status' => 'heading'
>> );
>> $this->applications['as_sideline'] = array(
>> 'fileroot' => dirname(__FILE__) . '/../../antespam',
>> 'initial_page' => 'sideline',
>> 'menu_parent' => 'antespam',
>> 'name' => _("Sideline"),
>> 'target' => 'AnteSpam',
>> 'url' => 'https://antespam.com/address/' . $user . '/sideline?uid='
> .
>> $user . '&lab=' . urlencode($encrypted),
>> 'webroot' => '/'
>> );
>> $this->applications['as_settings'] = array(
>> 'fileroot' => dirname(__FILE__) . '/../../antespam',
>> 'initial_page' => 'update',
>> 'menu_parent' => 'antespam',
>> 'name' => _("Settings"),
>> 'target' => 'AnteSpam',
>> 'url' => 'https://antespam.com/address/' . $user . '/update?uid=' .
>> $user . '&lab=' . urlencode($encrypted),
>> 'webroot' => '/'
>> );
>> $this->applications['as_passlist'] = array(
>> 'fileroot' => dirname(__FILE__) . '/../../antespam',
>> 'initial_page' => 'list/pass/',
>> 'menu_parent' => 'antespam',
>> 'name' => _("Passlist"),
>> 'target' => 'AnteSpam',
>> 'url' => 'https://antespam.com/address/' . $user .
> '/list/pass/?uid='
>> . $user . '&lab=' . urlencode($encrypted),
>> 'webroot' => '/'
>> );
>> $this->applications['as_blocklist'] = array(
>> 'fileroot' => dirname(__FILE__) . '/../../antespam',
>> 'initial_page' => 'list/block/',
>> 'menu_parent' => 'antespam',
>> 'name' => _("Blocklist"),
>> 'target' => 'AnteSpam',
>> 'url' => 'https://antespam.com/address/' . $user .
>> '/list/block/?uid=' . $user . '&lab=' . urlencode($encrypted),
>> 'webroot' => '/'
>> );
>>
>> Good luck and hope this helps.
>>
>> --
>> Andy Dorman
>>
>> --
>> Horde mailing list
>> Frequently Asked Questions: http://horde.org/faq/To unsubscribe, mail:
>> horde-unsubscribe at lists.horde.org
>
> ----- End message from Andy Dorman <adorman at ironicdesign.com> -----
>
> Following works in my setup.
>
> 'webcast' => array(
> 'name' => _("Webcast"),
> 'menu_parent' => 'intranet',
> 'fileroot' => '/tmp',
> 'webroot' => 'http://xxx.xxx.xxx/webcast',
> 'target' => '_blank',
> 'status' => 'link',
We have added a new menu status "link" for external site links.
Example how to add to topbar:
$this->applications['jabber'] =
array(
'name' => 'Jabber Chat',
'status' => 'link',
'url' => 'https://jabber.XXXXXXXXXXXXX.de',
'menu_parent' => 'tools',
'target' => '_new
');
Of course, you need to create a group "tools" first of use a
pre-existing one.
--
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/horde/attachments/20131023/165dfbb1/attachment.bin>
More information about the horde
mailing list