Forums / Setup & design / Add menu elements to ez publish admin interface

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

eZ debug

Timing: Jan 18 2025 11:18:57
Script start
Timing: Jan 18 2025 11:18:57
Module start 'content'
Timing: Jan 18 2025 11:18:57
Module end 'content'
Timing: Jan 18 2025 11:18:57
Script end

Main resources:

Total runtime0.1613 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0105 588.9766180.8125
Module start 'content' 0.01050.0056 769.789193.9609
Module end 'content' 0.01610.1451 863.7500522.3750
Script end 0.1612  1,386.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.2670200.0002
Check MTime0.00140.8712200.0001
Mysql Total
Database connection0.00080.503410.0008
Mysqli_queries0.113270.20181410.0008
Looping result0.00161.02231390.0000
Template Total0.144789.710.1447
Template load0.00090.560610.0009
Template processing0.143889.156910.1438
Override
Cache load0.00060.384410.0006
Sytem overhead
Fetch class attribute can translate value0.00080.506710.0008
XML
Image XML parsing0.00020.145810.0002
General
dbfile0.00221.3337200.0001
String conversion0.00000.005030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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