Skip to content
yawetse edited this page Oct 29, 2014 · 2 revisions

Extensions

Extensions are simply node modules that are name-spaced by the extension name prefix 'periodicjs.ext.'. The index.js file is loaded during runtime if the extension is enabled.

Any part of the application can be overwritten via extensions; routes, controllers, views, etc.

Installing extensions

$ npm install periodicjs.ext.myextension
$ npm install periodicjs.ext.myextension --skip-install-periodic-ext

You can install extensions from the command line via npm, by installing with the --skip-install-periodic-ext command line argument, your extension configuration file will not be modified.

####Configuring, Removing, Enabling and Disabling extensions The state of all extensions are in the content/extensions/extensions.json configuration file and is loaded at runtime.

Extensions can be enabled/disabled/removed either manually from extensions.json or from the admin extension interface.