Skip to the content
Documentation

Extensions

No ratings yet

An extension adds features, designs or settings to Exponential without changing the kernel. A new Exponential 6 installation already brings many: composer.json requires them, Composer installs them into extension/, and the site package activates the ones it uses. This section covers adding one more.

Fact Where it is decided
An extension is a folder named after it, for example extension/ezflow. site.ini [ExtensionSettings] ExtensionDirectory (default extension)
It does nothing until it is switched on. ActiveExtensions[] (the whole installation) or ActiveAccessExtensions[] (one siteaccess)
The order of the list is the order of priority for settings and templates. ExtensionOrdering=enabled lets the dependencies in extension.xml decide first
Its classes are found through an autoload array. php bin/php/ezpgenerateautoloads.php -e

The three steps

  1. Extracting the files: get the extension into extension/, with Composer, Git or a package.
  2. Activating the extension: switch it on, regenerate the autoloads and clear the caches.
  3. Extension load ordering: check which extension wins when two provide the same thing.

See which extensions are switched on:

./console exp:ini list site.ini/ExtensionSettings

In the administration, Setup > Extensions lists every extension with its state, loading position and metadata. More: Extensions: find, install, configure, build and release and the extension catalogue.

In this section

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.