Nathan Gray a écrit :
Hello,
I can’t find how to add a menu another aplications in sidebox via
hooks.
I would like to add a menu from my application in addressbook sidebox,
Add a link FROM your application TO the addressbook in your
application’s sidebox or
Add a link TO your application FROM the addressbook’s sidebox?
For the first one, you only have to modify your application a little.
I can’t think of a way to go from addressbook to your application
other than modifying the official code.
The official hooks can be found here:
http://www.egroupware.org:8080/egroupware/index.php?menuaction=wiki.uiwiki.view&page=API+Hooks
Nathan Gray
nathan at goarctic dot com
Extra punctuation??? Ug!!!
Just say no! Punctuation marks do not gain significance if you
increase their number, they make you look silly. One is sufficient.
Hello nathan,
thanks very for your answer, I’m sorry I haven’t verified what I wrote
It’s the second choice (Add a link TO my application FROM the
addressbook’s sidebox), then you confirm what I thought.
What if applications that have a sidebox_menu defined a location as
sidebox_<app_name> and in the sidebox_menu hook, applications call
hooks->process ?
I have done that in addressbook :
— class.contacts_admin_prefs.inc.php.orig 2008-01-23
18:05:45.000000000 +0100
+++ class.contacts_admin_prefs.inc.php 2008-01-23 18:08:04.000000000 +0100
@@ -65,6 +65,12 @@
);
display_sidebox($appname,lang(‘Addressbook menu’),$file);
-
$GLOBAL['hook_values'] = array (
-
'appname' => $appname,
-
'location' => 'sidebox_addressbook',
-
);
-
$GLOBALS['egw']->hooks->process('sidebox_addressbook',
array_keys($GLOBALS[‘egw_info’][‘apps’]),false);
+
}
if ($GLOBALS['egw_info']['user']['apps']['preferences'] &&
$location != ‘admin’)
What do you think ?
J. Charles
–
Ce message a ete verifie par MailScanner pour des virus ou des pouriels
et rien de suspect n’a ete trouve.
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft® Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers