Forums / Developer / Appending menu elements to admin interface

Appending menu elements to admin interface

Author Message

Eirik Alfstad Johansen

Sunday 19 December 2004 7:59:26 am

Hi,

I've successfully managed to append a new menu item to the admin interface using the new INI settings (as of 3.5) in a menu.ini.append.php in my extension. However, I don't understand how to specify a "sub menu" (referred to as a navigation part in the ezp template code).

Judging from the template code of the pagelayout.tpl for the admin siteaccess, it seems like the different sub menues are hard coded, but that doesn't make any sense considering the main menu items are dynamic.

Could perhaps someone from the ez crew shed some light on this? Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Balazs Halasy

Sunday 19 December 2004 3:32:32 pm

Hi,

You're right, they're somewhat hardcoded. :-) The reason for this is that eZp didn't really have a menu system before. The navigation part solution is also kind of a hack. Right now it is a bit messy, but it works. We'll probably improve this part of the system sometime in the future; maybe during the 3.7 cycle. What kind of extra menu do you wish to create? Just some shortcuts to existing functionality or do you wish to implement your very own submenu for a custom/home-made module?

Allman

Eirik Alfstad Johansen

Monday 20 December 2004 5:53:47 am

Hi Allman,

I need to implement my own submenu for a custom module. If this isn't possible without modifying the template code of the admin pagelayout, then what's the point of having INI settings for the dynamic inclusion of top menu items in the first place?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Saturday 08 January 2005 5:27:47 am

Bump.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/