DEV Community

Cover image for How To Create Plugin In OctoberCMS
Sapna T
Sapna T

Posted on

How To Create Plugin In OctoberCMS

As a name suggest “Plugin” is a software add-on (i.e. Set of code to achieve some specific functionality) that is installed onto a program, enabling it to perform additional features.

In OctoberCMS Plugins are the foundation for adding new features to the CMS by extending it.

Purpose:

To enable third-party developers to create abilities which extend an application
To support easily adding new features
To reduce the size of an application
To separate source code from an application
To create new plugin for OctoberCMS you must have to follow below steps:

Registration

Directory Structure
Registration file
Supported methods
Basic plugin information
Routing and initialization
Navigation menus
Version History
Plugin version file
Extending with events
Registration:

The registration process allows plugins to declare their features such as components or back-end menus and pages. Some examples of what a plugin can do:

Define components.
Define user permissions.
Add settings pages, menu items, lists and forms.
Create database table structures and seed data.
Alter functionality of the core or other plugins.
Provide classes, backend controllers, views, assets, and other files.

Read Complete Article at - How to create Plugin

Top comments (0)