[Kolab-devel] integrate fbview into horde
Jan Schneider
jan at horde.org
Fri Dec 14 22:24:28 CET 2007
Zitat von Richard Bos <ml at radoeka.nl>:
> Hello Jan,
>
> Op Friday 14 December 2007 17:27:22 schreef Jan Schneider:
>> Zitat von Richard Bos <ml at radoeka.nl>:
>> > Op Friday 14 December 2007 12:13:44 schreef Jan Schneider:
>> >> See also: http://bugs.horde.org/ticket/?id=2127
>> >
>> > ah, thus it will take some time.... :(
>> >
>> > But, can you give me a hint on how to obtain a top menu, when one is
>> > missing? Perhaps I can provide such functionality (in a very simple form)
>> > as a patch. I'll forward you an email, with some screenshots of the
>> > missing top menu.
>>
>> Custom (top) menu items are added in config/menu.php.
>>
>> Jan.
>
> Thanks for your switft reply.
> I tried to use the $_menu initially, but it did not have any effect :( Hence
> i started to experiment with patching the current menu....
>
> You are referring to this file (menu.php), isn't it:
> http://cvs.horde.org/co.php?r=1.5&f=kronolith%2Fconfig%2Fmenu.php.dist
>
> With this code:
> * $_menu[] = array(
> * 'url' => 'http://www.example.com/',
> * 'text' => 'Example, Inc.',
> * 'icon' => 'example.png',
> * 'icon_path' => 'http://www.example.com/images/',
> * 'target' => '_blank',
> * 'onclick' => ''
> * );
> *
> * You can also add a "separator" (a spacer) between menu items. To add a
> * separator, simply add a new string to the $_menu array set to the text
> * 'separator'. It should look like this:
> *
> * $_menu[] = 'separator';
> */
>
> $_menu = array();
>
> /* Add your custom entries below this line. */
> =========== EOF ==========================
>
> Now what should I add here? Is it:
> (the url's are probably wrong, but that's no problem)
> $_menu[] = array(
> 'url' => 'kronolith/attendess.html',
> 'text' => 'Fbview',
> 'icon' => 'fbview.png',
> 'icon_path' => 'horde/images',
> 'target' => '_blank',
> 'onclick' => ''
> );
>
> $_menu[] = 'separator';
>
> If I would do it this way, I would redefine the $_menu each time, and not add
> something it, isn't it?
Each time the file is loaded, yes. But that's on purpose. You can try
to debug it in Horde/Menu.php, addSiteLinks(). But your code looks fine.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the devel
mailing list