Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A component is the smallest block of content that editors can edit, delete and move as a single unit. Think of a component as content that "belongs together". When you look at a typical Magnolia page, you can identify components easily with that rule of thumb. At its simplest, a component is just a heading and some text that go together.

Define an area

Areas are defined in the page template definition. You do not need to create a separate area definition file.

...

The FreeMarker expression [@cms.area name="main"/] includes the area. The <div class="main"> element wraps the expression for styling purposes.

Note

Make sure that the FreeMarker expression [@cms.area name="main"/] is not included again at the end of the hello.ftl template script.

Create the quotation component

...

Further reading