2
This folder is provided as a reasonable place to copy/develop custom modules. This folder is auto-loaded based on the
3
`Xibo\Custom` namespace.
5
This folder is also monitored by the Modules Page for `.json` files describing modules available to be installed, the
6
structure of such a file is:
10
"title": "Module Title",
11
"author": "Module Author",
12
"description": "Module Description",
14
"class": "Xibo\\Custom\\ClassName"
18
The module class must `extend Xibo\Widget\ModuleWidget` and implement the installOrUpdate method.
20
We recommend that modules put their Twig Views in a sub-folder of this one, named as their module name. This should be
21
set in `installOrUpdate` like `$module->viewPath = '../custom/{name}';`.
24
## Web Accessible Resources
25
All web accessible resources must placed in the `/web/modules` folder and be installed to the library in `installFiles`.
29
This location can also be used for theme views - we recommend a sub-folder for each theme. The theme `config.php` file
30
should set its `view_path` to `PROJECT_ROOT . '/custom/folder-name`.
b'\\ No newline at end of file'