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 less fewer folders compared to this example.
magnolia.resources.dir
- the light modules folderPlease note that a Magnolia Light module must reside within the so called "magnolia Magnolia resources directory", the ; 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 have to provide must provide the path to the folder via configuration.
...
The following items all can be defined within a light module with using YAML. Items defined by YAML can be decorated, or they can be reused with YAML inherit and include.
Multiexcerpt include | ||||
---|---|---|---|---|
|
Other non YAML-based items which can be in a light module:
...
With Magnolia CLI you can create the a complete light module structure with a single command. (If you want to install CLI, see Magnolia CLI - Installation.)
Open a shell, change to you the your light modules folder and run the following command:
...
Instead of my-module
use an appropriate name (no special characters such as space or german umlautor spaces are not allowed).