Plugin examples
There are examples of plug-ins on GitHub to help you get started with plug-in development:
- JSON plugin – defines a data type for JSON. Simple, only 39 lines of code
- Markdown plug-in – Markdown data type plug-in. Simple, only 37 lines of code
- Kanban board – kanban board view templates. More complex, 350 lines of code including drag-and-drop code with dragula
- Plain Bootstrap theme – based on the United bootstrap theme
- the base plug-in, which defines view templates and types, is located in the /packages/saltcorn-data/base-plugin directory in the Saltcorn repository
- the default theme, sbadmin2, based on the SB Admin 2 theme is located in the /packages/saltcorn-sbadmin2 directory in the Saltcorn repository
More examples are available in the Saltcorn GitHub organisation. All of the repositories in that organisation are plugins with the exception of saltcorn, which is the main project repository.