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 |
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Patch ⇒ No
MIMP::addMIMPMenu() function, where it will be done correctly for all
views, not just the mailbox.
http://cvs.horde.org/diff.php/mimp/docs/CHANGES?r1=1.79&r2=1.80&ty=u
http://cvs.horde.org/diff.php/mimp/lib/MIMP.php?r1=1.84&r2=1.85&ty=u
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
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