Forums / Setup & design / custom menu tab in admin area

custom menu tab in admin area

Author Message

Łukasz Serwatka

Sunday 23 January 2005 5:44:25 am

Hi,

This is from menu.ini file

# A list of the current navigation parts and their names
# Each entry consists of the identifier as key and the name
# as value.
# Note: If you wish to have the name translatable you will
#       need to create a dummy PHP file with the following in it
# ezi18n( 'kernel/navigationpart', 'Custom navigation', 'Navigation part' );
# This will cause the ezlupdate to include it in the .ts file.
[NavigationPart]
Part[ezcontentnavigationpart]=Content structure 

Where (folder?) i must create dummy PHP file? What should be name of this file? I would like to create new tab in top menu which is translatable.

Thanks for any tips

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Łukasz Serwatka

Monday 24 January 2005 12:30:55 am

*Bump*

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jan Borsodi

Monday 24 January 2005 12:42:08 am

The PHP file must be available to the ezlupdate program. The best way is to place a PHP file in your extension (if are you using one), then run ezlupdate with the <i>-e</i> option.
http://ez.no/ez_publish/documentation/development/extensions/translation

For example in <i>extension/myextension/classes/i18n.php</i>

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Łukasz Serwatka

Monday 24 January 2005 12:50:19 am

Hi Amos,

Thank you for your reply. I would like to add one or tabs which are using already existing phrases in trnaslation.ts file.

Tab "Templates" which is linked to visual/templatelist and already translated in /design/admin/parts/visual/menu.

What NavigationPart I should use or If I must use NavigationPart?
Part[????]=???

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jan Borsodi

Monday 24 January 2005 1:21:08 am

The INI entry is related to the display name for the navigation part (for a section) and not the top menu name.
The top menu entry itself cannot be translated at this time.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Łukasz Serwatka

Monday 24 January 2005 1:30:49 am

Hi,

Thanks Amos. This was what i realy need to known

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

eZ debug

Timing: Jan 19 2025 07:14:44
Script start
Timing: Jan 19 2025 07:14:44
Module start 'content'
Timing: Jan 19 2025 07:14:44
Module end 'content'
Timing: Jan 19 2025 07:14:44
Script end

Main resources:

Total runtime0.1253 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.0048 588.9531180.8359
Module start 'content' 0.00480.0061 769.7891101.9922
Module end 'content' 0.01090.1143 871.7813530.5547
Script end 0.1252  1,402.3359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.6384200.0002
Check MTime0.00131.0498200.0001
Mysql Total
Database connection0.00060.458210.0006
Mysqli_queries0.083866.90041410.0006
Looping result0.00120.92881390.0000
Template Total0.113990.910.1139
Template load0.00080.620910.0008
Template processing0.113190.300810.1131
Override
Cache load0.00060.443710.0006
Sytem overhead
Fetch class attribute can translate value0.00070.521910.0007
XML
Image XML parsing0.00020.169410.0002
General
dbfile0.00453.5594200.0002
String conversion0.00000.004030.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