Wednesday 08 February 2006 2:22:20 pm
Hi Vytis You need to add a menu.ini.append.php to the settings directory of your extension.
<?php /* #?ini charset="iso-8859-1"?
[NavigationPart]
Part[ezformsnavigationpart]=Forms
[TopAdminMenu]
Tabs[]=[modulename]
[Topmenu_[modulename]]
NavigationPartIdentifier=ez[modulename]navigationpart
Name=[Text you want to appear on tab]
Tooltip=[Tooltip when you mouse over the tab]
URL[]
URL[default]=[URL to extension main function]
Enabled[]
Enabled[default]=true
Enabled[browse]=false
Enabled[edit]=false
Shown[]
Shown[default]=true
Shown[navigation]=true
Shown[browse]=true
*/ ?>
To ensure the Tab is selected when you are within your extension you need to define the function views in modules/modulename/module.php like this
$ViewList["setup"] = array(
'functions' => array( 'edit' ),
"script" => "setup.php",
"params" => array( ),
"default_navigation_part" => 'ez[modulename]navigationpart'
);
in all examples [modulename] (including [] ) should be replaced with your module name. HTH
Cheers Bruce
My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish
|