[Tickets #7630] Implementation of Extended menu doesn't work

bugs at horde.org bugs at horde.org
Mon Nov 3 16:32:59 UTC 2008


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7630
------------------------------------------------------------------------------
  Ticket             | 7630
  Created By         | gerard.breiner at ias.u-psud.fr
  Summary            | Implementation of Extended  menu doesn't work
  Queue              | MIMP
  Version            | 1.1.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | patch.zip
------------------------------------------------------------------------------


gerard.breiner at ias.u-psud.fr (2008-11-03 11:32) wrote:

Hello,

I wanted to add a link "Accueil" to the menu of Mimp by using   
config/menu.php  but unsuccessfull.
So, here is what I modified so that it could works.

mimp/config/menu.php

This  pattern is not correct $_menu[] = array( 'url' =>         
'http://www.example.com/',  'text' =>       'Example, Inc.');
The good pattern is :
$_menu = array( 'your url' =>        'your text');

for example in my case  :  $_menu = array( '/dimp' =>        'Accueil');

mimp/index.php

I added :
if (is_readable(MIMP_BASE . '/config/menu.php')) {
    require MIMP_BASE . '/config/menu.php';
}

mimp/mailbox.php

Before the "foreach of $items" I added :

foreach ($_menu as $link => $label) {
    $mset->add(new Horde_Mobile_link($label, $link));
}

After having these modifications my link "Accueil" is added at the top  
of the menu. I hope my humble contribution will be usefull.

Best regards

Gerard





More information about the bugs mailing list