Friday 31 December 2010 9:05:49 am
Hi Sandeep, you need couple of ini files in your extension to define your module and a new tab in admin interface. The following is a module.ini.append.php that defines modules that extension provides:
<?php /* #?ini charset="utf-8"?
[ModuleSettings]
ExtensionRepositories[]=myextension
ModuleList[]=mymodule
*/ ?> After that, all that is left is place your module in extension/myextension/modules/mymodule folder You can define a working admin interface tab in menu.ini append.php, something like this
<?php /* #?ini charset="utf-8"?
[TopAdminMenu]
# Tab identifier
Tabs[]=<em>mymodule</em>
# Tab settings
[Topmenu_<em>mymodule</em>]
# Tab name
Name=My Module
# Tab tooltip
Tooltip=My Module start page
URL[]
# URL that will be opened when clicking on tab
URL[default]=<em>mymodule/view
</em># Defines if tab is enabled in various situations
Enabled[]
Enabled[default]=true
Enabled[browse]=false
Enabled[edit]=false
# Defines if tab is shown in various situations
Shown[]
Shown[default]=true
Shown[edit]=true
Shown[navigation]=true
Shown[browse]=true
*/ ?> That should set you with a basic working tab, but do consult doc.ez.no docs for menu.ini to learn what other settings are there.
eZ Publish certified developer
http://ez.no/certification/verify/350658
|