Forums / Developer / Creation of customize module extension
Sandeep Kadam
Friday 31 December 2010 2:08:11 am
Hello All,
I am planning to create a module extension in which a tab will be automatically added in Admin Top Navigation when activating that extension from admin section.Just like design tab is present. Can any one please suggest me how can I start proceeding or any tip will be helpful.
Thanks You,Sandeep Kadam
Peter Keung
Friday 31 December 2010 8:59:13 am
See settings/menu.ini, specifically the [NavigationPart], [TopAdminMenu], [Topmenu_*], and [Leftmenu_*] blocks.
Also, for proper highlighting of the tab when selected, be sure to properly define the navigation part in your module or view: http://ezpedia.org/ez/module
http://www.mugo.ca Mugo Web, eZ Partner in Vancouver, Canada
Edi Modrić
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
Sunday 02 January 2011 10:50:26 pm
Hello,
Edi : I have followed the steps provided by you and have successfully added a TAB thank you.Peter : Thank you now i am trying the highlighting of the tab thanks for your suggestion.
Thank YouSandeep Kadam