How to set $navigation_part.identifier?

Author Message

Pesti Pal

Tuesday 25 September 2007 5:24:38 am

I'm developing a module and I have tried in many ways, but i haven't succeeded to set the $navigation_part.identifier variable from the module's view. Could someone tell me the correct way of doing this?

Łukasz Serwatka

Tuesday 25 September 2007 5:46:33 am

You have to setup it in your module view definition:

$ViewList['my_view'] = array( 
            'default_navigation_part' => 'myviewnavigationpart', 
            'script' => 'my_view.php' );

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

André R.

Tuesday 25 September 2007 5:55:11 am

Take a look in module.ini to see how you can assign different module's to a navigation identifier.

Also take a look in menu.ini for how you can set up custom navigation identifier if you want to do that!

EDIT: follow Łukasz Serwatka suggestion, setting navigation identifier in module.ini is for overriding the nevigation identifier set in module.php as Łukasz points out.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pesti Pal

Tuesday 25 September 2007 7:17:31 am

I have tried every combination of the above, but $navigation_part.identifier doesn't get set. If this should be done automatically i'm pretty sure it's not done.

In the view's php file i have the $Params['default_navigation_part'] set correctly and available.

I have read something like $Result['navigation_part'] has to be set in the view, but that doesn't do the job.

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 31 2025 04:27:17
Script start
Timing: Jan 31 2025 04:27:17
Module start 'layout'
Timing: Jan 31 2025 04:27:18
Module start 'content'
Timing: Jan 31 2025 04:27:18
Module end 'content'
Timing: Jan 31 2025 04:27:18
Script end

Main resources:

Total runtime0.0380 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.2344151.2109
Module start 'layout' 0.00510.0027 739.445336.6484
Module start 'content' 0.00780.0285 776.093894.1875
Module end 'content' 0.03630.0017 870.281333.9922
Script end 0.0379  904.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00266.8014140.0002
Check MTime0.00123.2186140.0001
Mysql Total
Database connection0.00071.780410.0007
Mysqli_queries0.00256.464830.0008
Looping result0.00000.037110.0000
Template Total0.00123.210.0012
Template load0.00092.415310.0009
Template processing0.00030.722210.0003
Override
Cache load0.00061.709510.0006
General
dbfile0.014838.928780.0018
String conversion0.00000.021440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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