6.0.0-beta1
7/7/25

[#7630] Implementation of Extended menu doesn't work
Summary Implementation of Extended menu doesn't work
Queue MIMP
Queue Version 1.1.1
Type Bug
State Resolved
Priority 2. Medium
Owners chuck (at) horde (dot) org
Requester gerard.breiner (at) ias (dot) u-psud (dot) fr
Created 11/03/2008 (6090 days ago)
Due 11/03/2008 (6090 days ago)
Updated 11/07/2008 (6086 days ago)
Assigned
Resolved 11/07/2008 (6086 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
11/07/2008 04:09:54 AM Chuck Hagenbuch Comment #3
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Patch ⇒ No
Reply to this comment
I've implemented this, for 1.1.2, by reading the file in the 
MIMP::addMIMPMenu() function, where it will be done correctly for all 
views, not just the mailbox.
11/07/2008 04:08:57 AM Chuck Hagenbuch Deleted Original Message
 
11/03/2008 04:32:59 PM gerard (dot) breiner (at) ias (dot) u-psud (dot) fr Comment #1
Priority ⇒ 2. Medium
New Attachment: patch.zip
Patch ⇒ Yes
Milestone ⇒
Due ⇒ 11/03/2008
Summary ⇒ Implementation of Extended menu doesn't work
Type ⇒ Bug
State ⇒ Unconfirmed
Queue ⇒ MIMP
Reply to this comment
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

Saved Queries