eZ Community » Forums » Setup & design » Make custom tab in admin area 'active'

Make custom tab in admin area 'active'

Make custom tab in admin area 'active'

Wednesday 28 September 2005 11:18:22 am - 4 replies

I made custom admin siteaccess and edit menu.ini.append.php to hide some tabs in top menu.
Then - according to comments in menu.ini.append.php created new tab. Everything works - i mean tab is shown, link works correctly, but tab isn't active.
and is recognized as part of 'ezcontentnavigationpart' not 'ezbwnavigationpart' which is the name I use in [NavigationPart] of ini file.

Where else should I make modifications?


Thursday 29 September 2005 12:35:54 pm

I found that navigationpart_identifiers starting with 'ez' are reserved for ez Publish, but changing the name to 'bwnaw' made no change


Friday 30 September 2005 8:45:23 am

Still no progress in my problem with custom tab in admin siteaccess.

I found in eznavigationpart.php that:
Will return the navigation part array if the identifier is valid, the default will be returned if the identifier is not valid

But what is valid identifier?

later in the same file:
<i>The list is cached in the global variable eZNavigationPartList.</i>

My custom identifier is in that variable, but doesn't work - tab has still 'inactive' style and variable $menu_item.navigationpart_identifier is set to 'ezcontentnavigationpart' which is default navigationpart identifier.

What am I doing wrong?


Friday 30 September 2005 10:28:10 am

In your module.php you need something like:

$ViewList["edit"] = array(
    'functions' => array( 'read','edit' ),
    "script" => "edit.php",
    'unordered_params' => array(),
    "default_navigation_part" => 'ezbwnawnavigationpart'

Of course the values in menu.ini need to reference 'ezbwnavigationpart'

I'm pretty sure that the navigation parts can start with ez (thereis nothing in the code stoping this).



Friday 30 September 2005 10:37:06 am

Thank you Bruce - it was so simple happy.gif Emoticon
Everything looks great now!.



You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from