Autogeneration creates components inside an area automatically without
editor involvement. Anything you define under the content node will
be autogenerated.
Autogeneration behavior
Autogenerated components behave differently from normal components:
Ordered as defined: In an empty area, components are autogenerated
in the same order as they are defined in the area definition.
New components are placed last: If an area already has autogenerated
components, newly defined components will be placed last.
Cannot delete permanently: When you delete an autogenerated component,
it is regenerated and placed last in the area.
Autogeneration properties
Configure component autogeneration in an
area definition
under the autoGeneration node.
Parent node for autogenerated content. Anything you define under this node will
be autogenerated. To create multi-value properties, see the references property
in the example definition above.
<component name>
required
Name of the autogenerated component.
nodeType
required
When set to mgnl:component, defines the referenced item as a component and
generates a component node.
required, default is
info.magnolia.rendering.generator.CopyGenerator
Class that generates nodes based on the definition. The default
info.magnolia.rendering.generator.CopyGenerator creates a
copy of the exact nodes and properties you define under the content
node. To create a custom generator class, make sure you implement the
info.magnolia.rendering.generator.Generator interface.