Forums / Developer / New Tab at Administration Interface

New Tab at Administration Interface

Author Message

Michael Scofield

Tuesday 10 June 2008 3:15:01 am

Hello,

I'm trying to create a new Tab at the administration interface to make an interface to manage some additional tables I have in the database.

I changed the menu.ini.append.php and now I have a tab showing at the back end.

But I don't know how to proceed from this step.

Do I have to create a module?

The screens I need are from basic management. For each table I want to have a link to manage the table. When I click this link, it's supposed to show me buttons to Insert a new registry, Search for inserted registries, delete and edit.

Do I need a module for that?

Thank you
Michael Scofield

Piotrek Karaƛ

Tuesday 10 June 2008 9:43:20 am

If you managed to create a tab, you're almost there. But of course module view will be necessary for the tab to be able to point to. So yes, you need a module and view(s). You would probably at least need views like browse and edit. Deletion and adding_blank can usually be combined within browse view, but that's up to your preferences.

If you plan more than one view, you may want to create a left-side menu for that tab. This is defined in the module.php, the definition file for your module, with the following line for each view array:

'default_navigation_part' => 'somecustomnavigationpart',

and has corresponding templates in /design/admin/templates/parts/*

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

anry gon

Tuesday 17 June 2008 1:49:31 am

try add
extension/ext_name/design/standart/templates/ext_name/parts/menu.tpl
and

$Result ['left_menu'] =  'design:ext_name/parts/menu.tpl' ;

in your view file
It's works in my case.

eZ debug

Timing: Jan 19 2025 04:34:14
Script start
Timing: Jan 19 2025 04:34:14
Module start 'content'
Timing: Jan 19 2025 04:34:14
Module end 'content'
Timing: Jan 19 2025 04:34:14
Script end

Main resources:

Total runtime0.2211 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.0055 588.9766180.8281
Module start 'content' 0.00550.0047 769.804794.0078
Module end 'content' 0.01020.2109 863.8125522.5469
Script end 0.2211  1,386.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.6703200.0002
Check MTime0.00140.6273200.0001
Mysql Total
Database connection0.00060.261010.0006
Mysqli_queries0.170377.02641410.0012
Looping result0.00170.77921390.0000
Template Total0.210695.210.2106
Template load0.00090.396610.0009
Template processing0.209794.819310.2097
Override
Cache load0.00060.283010.0006
Sytem overhead
Fetch class attribute can translate value0.00070.334110.0007
XML
Image XML parsing0.00030.136110.0003
General
dbfile0.00251.1422200.0001
String conversion0.00000.003730.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.0002 secs