Tuesday 25 May 2010 7:44:59 am
eZ Publish 4.3.0 introduced the ability to filter the display of tabs in the admin interface depending on users security policies. Here is how to proceed :
extension/myextension/settings/menu.ini.append.php :
<?php /* #?ini charset="utf-8"? [NavigationPart] Part[mynavigationpart]=My NavigationPart description [TopAdminMenu] Tabs[]=mytab [Topmenu_mytab] NavigationPartIdentifier= mynavigationpart Name=My Tab Tooltip=My Tooltip URL[] URL[default]=mymodule/myview Enabled[] Enabled[default]=true Enabled[browse]=false Enabled[edit]=false Shown[] Shown[default]=true Shown[navigation]=true Shown[browse]=false # Simply add access control to your module's default function PolicyList[]=mymodule/function */ ?>
Enjoy !