Sections in more detail

The sample layout uses commands such as @RENDER section to place output generated in the content page. Alternatively, the method :renderSection(cSection) can be used instead of the command. In addition, using ::hasSection() allows verification of whether a content page defines the requested section.
The composition engine of the CXP infrastructure introduces a concept called sections. Content pages define sections, layout pages use sections. To effectively use sections, you can create sections and make them current using the @SECTION command. The page output then goes into this current section. The command @RENDER can be used to render sections in a layout page. The method ::hasSection() can be used in a layout page to check if a content page has created a section.

Related articles:
Run in new tab
Live editor
Result built with V2 2156
I'm a warning toast!
I'm a success toast!