Share » Forums » Developer » Creation of customize module extension

Creation of customize module extension

Creation of customize module extension

Friday 31 December 2010 2:08:11 am - 3 replies

Author Message

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

Sandeep Kadam

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 You
Sandeep Kadam

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

36 542 Users on board!

Forums menu