ez.no / ezpublish / documentation / development / extensions / introduction to extensions
These documentation pages are no longer maintained. Please visit the new documentation site.
eZ publish is built in a modular way. Much is created with a plug-in system. This allow us to easily extend the functionality of eZ publish. However, we should try to avoid changing the kernel of eZ publish. This is to make it easier to upgrade to a newer eZ publish version later. New datatypes, workflow events and so on should be created as extensions. This will also make it easier to share your extensions with other eZ publish users.
All extensions have a separate directory placed in the extension/ directory in the eZ publish root directory. The extension must then be activated in site.ini (or preferably the override). Just add the extension directory name to the ActiveExtensions[] array in the ExtensionSettings block.
settings/override/site.ini.append:
[ExtensionSettings] ActiveExtensions[]=myExtension ActiveExtensions[]=anotherExtension
However, if you want to activate an extension from siteaccess you must use the ActiveAccessExtensions[] array instead:
settings/siteaccess/mydesign/site.ini.append
[ExtensionSettings] ActiveAccessExtensions[]=myExtension ActiveAccessExtensions[]=anotherExtension
This will activate the extensions placed in extension/myExtension/ and extension/anotherExtension/.
We have a new directory structure inside the directory of our extension:
|
Directory |
Description |
|---|---|
|
actions/ |
New actions for forms |
|
datatypes/ |
A directory for new datatypes |
|
design/ |
Design extensions |
|
eventtypes/ |
New event types for workflows |
|
modules/ |
Kernel extensions |
|
settings/ |
Settings for this extension |
|
translations/ |
Translation extensions for the x18n template operator |
Comments
Thanks, Bruce!
Mindshare Interactive Campaigns
Wednesday 26 April 2006 5:33:07 pm
Action Explaination
Bruce Morrison
Tuesday 18 April 2006 5:00:54 am
http://www.serwatka.net/en/blog/do_you_need_action
Form Action Example
Mindshare Interactive Campaigns
Monday 17 April 2006 8:11:54 pm
Re: Does this belong to the actual version?
Alex Jones
Tuesday 29 July 2003 8:59:18 pm
Alex
Does this belong to the actual version?
Thomas Nunninger
Tuesday 29 July 2003 8:49:56 pm
I couldn't find the directory extension/ in my actual installation. Do I have to create this directory or is this a comment to an older version?