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.

eZ debug

Timing: Jan 31 2025 01:14:38
Script start
Timing: Jan 31 2025 01:14:38
Module start 'layout'
Timing: Jan 31 2025 01:14:38
Module start 'content'
Timing: Jan 31 2025 01:14:38
Module end 'content'
Timing: Jan 31 2025 01:14:38
Script end

Main resources:

Total runtime0.0253 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 588.2656151.2266
Module start 'layout' 0.00440.0037 739.4922220.7344
Module start 'content' 0.00810.0155 960.2266997.8672
Module end 'content' 0.02370.0016 1,958.093833.9922
Script end 0.0252  1,992.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002510.0706140.0002
Check MTime0.00114.2427140.0001
Mysql Total
Database connection0.00052.080310.0005
Mysqli_queries0.00218.199730.0007
Looping result0.00000.039610.0000
Template Total0.00124.610.0012
Template load0.00093.425110.0009
Template processing0.00031.135410.0003
Override
Cache load0.00062.334010.0006
General
dbfile0.002911.530480.0004
String conversion0.00000.024540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs