Adding new navigation part

Author Message

Sebastiaan van der Vliet

Monday 01 November 2004 3:20:02 am

Hi,

I have added a new navigation part to the admin interface by modifying the pagelayout.tpl admin template. However, to show the new tab as 'active' when a user clicks on the tab, I had to add the following entry to the file 'kernel\classes\eznavigationpart.php':

array( 'name' => 'Library',
'identifier' => 'ezlibrarynavigationpart' ),

Is it possible to show a new tab as 'active' when a user clicks on it, without editing eznavigationpart.php?

The tab displays an extension, but adding the line

    'default_navigation_part' => 'ezlibrarynavigationpart',

to the module.php file of the extension does not seem to make any difference.

Thanks for your help,
Sebastiaan

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

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 04:27:58
Script start
Timing: Jan 19 2025 04:27:58
Module start 'layout'
Timing: Jan 19 2025 04:27:58
Module start 'content'
Timing: Jan 19 2025 04:27:59
Module end 'content'
Timing: Jan 19 2025 04:27:59
Script end

Main resources:

Total runtime1.3020 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.1563152.6250
Module start 'layout' 0.00600.0044 741.781339.4453
Module start 'content' 0.01051.2899 781.2266472.4141
Module end 'content' 1.30040.0015 1,253.64068.1641
Script end 1.3020  1,261.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.2733160.0002
Check MTime0.00150.1114160.0001
Mysql Total
Database connection0.00070.054610.0007
Mysqli_queries1.259596.7355460.0274
Looping result0.00060.0446440.0000
Template Total1.263497.020.6317
Template load0.00210.160620.0010
Template processing1.261396.869320.6306
Template load and register function0.00010.010210.0001
states
state_id_array0.00090.068510.0009
state_identifier_array0.00150.118820.0008
Override
Cache load0.00170.1299130.0001
Sytem overhead
Fetch class attribute can translate value0.00080.058810.0008
Fetch class attribute name0.00070.055020.0004
XML
Image XML parsing0.00050.036810.0005
class_abstraction
Instantiating content class attribute0.00000.000320.0000
General
dbfile0.00080.0649170.0000
String conversion0.00000.000740.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs