Magnolia 5.6 reached end of life on June 25, 2020. This branch is no longer supported, see End-of-life policy.
...
Light modules can contain more or fewer folders compared to this example.
...
magnolia.resources.dir
...
Magnolia light modules
...
Magnolia Light module must reside within the Magnolia resources directory; this directory is also often referred to as the Magnolia light modules folder. The name and the location of this directory are arbitrary, but you must provide the path to the folder via configuration.
Include Page | ||||
---|---|---|---|---|
|
Magnolia 5.6.1+: A change in the light modules folder may also flush the server cache. You can configure this behavior under /modules/cache/config/contentCaching/defaultPageCache/flushPolicy/policies/lightModule/pathToCacheMappings/defaultPageCache
with the pattern
property, which specifies the pattern for the operation. The default value is .*/(templates|webresources|i18n)/.*
.
...
Include Page | ||
---|---|---|
|
|
Open a shell, change to your light modules folder and run the following command:
Code Block |
---|
mgnl create-light-module my-module |
|
my-module
use an appropriate name (special characters or spaces are not allowed).