Add menu elements to ez publish admin interface

Author Message

Don Blogger

Tuesday 31 March 2009 9:45:12 am

Hi,

I've written an extension and would like to be able to link to it from within the ez publish interface.

Could anybody help me and tell me how I could do that? I was thinking of including a link in the top menu bar (next to setup, for example).

If possible, it would be great to be able to include further links to the extension's different modules on the left side instead of the content tree. These links should show up after clicking on the new included top menu item.

I'd appreciate your help because I don't know how this could work.

Thank's in advance,

DonBlogger

Gert

Thursday 02 April 2009 1:03:21 am

I usually link to my extensions on the right admin bar or right developer bar as follows:

1) duplicate and rename one of the templates in design/admin/templates/toolbar/full (eg. admin_bookmarks.tpl to "yourtemplate.tpl")

2) adapt this template, include the links you need and eliminate stuff you don't

3) open settings/siteaccess/plain_site_admin/toolbar.ini.append.php and make sure you have the following section:

[Tool]
AvailableToolArray[]
AvailableToolArray[]=yourtemplate

4) return to the admin interface, go to design/toolbars and select either admin_right or admin_right_developer (depending on whether you want your section to appear in the first or second block)

5) "yourtemplate" will now appear in the select box as a possible tool to add

That's it! I guess there are more sophisticated ways to do this, but I believe this is a viable solution as well!

Best regards,

Gert

canguro web solutions
consulting & development
http://www.canguro.at

Kristof Coomans

Saturday 25 April 2009 6:49:19 am

Hi DonBlogger

There are some other extensions adding tabs to the admin interface, you will find them here: http://projects.ez.no/types/ez_publish/admin_interface_integration/menu_tab. Look at the settings in menu.ini. Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.