Plugin folder
The files and folders of a plugin.
On this page
Every folder in plugins is one plugin. Pluginable loads all of them on start. The sample Products plugin looks like this:
plugins/products/
├── index.js
├── schemas/
│ └── products.js
└── public/
├── index.html
└── detail.htmlindex.js
Describes the plugin: its name, icon, position in the menu, routes, permissions and settings. Required. See Plugin options.
schemas
The server actions of the plugin, one or more .js files with NEWACTION(...). The ROUTE lines in index.js make them available to the screens.
public
The screens of the plugin:
index.html: the main screen, opened from the menu at/admin/<folder>/.- Other
.htmlfiles: extra screens listed inexports.routes, such asdetail.html. See Add a detail page.
Built-in plugins
| Folder | What it does |
|---|---|
admin | Sign-in page, admin account and account menu. |
settings | The Settings screen. |
products, profiles | Samples. See Sample plugins. |