...
Include Page |
---|
| _What is magnolia.resources.dir |
---|
| _What is magnolia.resources.dir |
---|
|
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)/.*
.
What items can be defined in a light module?
...
Creating a light module with Magnolia CLI
With Magnolia CLI you can create a complete structure with a single command. Open a shell, change to your light modules folder and run the following command:
Code Block |
---|
mgnl create-light-module my-module |
with Magnolia CLI | | _Creating a light module with Magnolia CLI |
---|
|
Instead of my-module
use an appropriate name (special characters or spaces are not allowed).