Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: review edits

...

Light modules can contain more or less fewer folders compared to this example.

The magnolia.resources.dir - the light modules folder

Please 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.

...

What items can be defined in a light module?

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
MultiExcerptNamebullet-point-list
PageWithExcerpt_list of definition items with registries which can be done with YAML

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).