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

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more