-
Notifications
You must be signed in to change notification settings - Fork 14
Plugin Meta
Daniel Kesler edited this page Oct 11, 2017
·
2 revisions
Every plugin must have a meta.json
file as it contains all the info needed to integrate the plugin into the system.
{
"description": "Example plugin",
"hooks": [],
"required_bundles": [],
"icon": "",
"author_uri": "mailto:[email protected]",
"name": "Example",
"author": "FABteam",
"menu": {
"/fab_example": {
"url": "plugin/fab_example",
"title": "Example",
"icon": "fa-cube"
}
},
"plugin_uri": "https://github.com/",
"version": "0.10.0",
"plugin_slug": "fab_example",
"filetypes": []
}
menu
- contains menu description. Every attribute represents a menu path. The first level of the path is the first level of the side menu. /fab_example
will be displayed below the Plugins
menu item.
To put the new menu item in one of the existing menus, you can change the path to /make/fab_example
and it will be as sub-menu of Make
menu item.
To create additional sub-menus just create another menu item with the path within the previous one. It is important to also remove the url
attribute from the parent menu.
"menu": {
"/fab_example": {
"title": "Example",
"icon": "fa-cube"
},
"/fab_example/submenu1": {
"url": "plugin/fab_example",
"title": "Sub-menu #1",
"icon": "fa-cube"
}
},
Getting started
Bundles
Plugins