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

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 19 2025 09:59:24
Script start
Timing: Jan 19 2025 09:59:24
Module start 'layout'
Timing: Jan 19 2025 09:59:24
Module start 'content'
Timing: Jan 19 2025 09:59:25
Module end 'content'
Timing: Jan 19 2025 09:59:25
Script end

Main resources:

Total runtime0.9993 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1563152.6250
Module start 'layout' 0.00680.0032 741.781339.4453
Module start 'content' 0.01000.9880 781.2266582.0313
Module end 'content' 0.99800.0012 1,363.257816.1641
Script end 0.9993  1,379.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4097160.0003
Check MTime0.00150.1473160.0001
Mysql Total
Database connection0.00070.069510.0007
Mysqli_queries0.931293.1845660.0141
Looping result0.00070.0653640.0000
Template Total0.964496.520.4822
Template load0.00290.286120.0014
Template processing0.961596.217820.4807
Template load and register function0.00010.008010.0001
states
state_id_array0.00110.110310.0011
state_identifier_array0.00090.087320.0004
Override
Cache load0.00260.2558320.0001
Sytem overhead
Fetch class attribute can translate value0.00100.096920.0005
Fetch class attribute name0.00100.098880.0001
XML
Image XML parsing0.00080.081220.0004
class_abstraction
Instantiating content class attribute0.00000.0027120.0000
General
dbfile0.00390.3854250.0002
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs