...
Localtab Group |
---|
Localtab |
---|
| Code Block |
---|
language | js |
---|
title | example/templates/pages/home.yaml |
---|
| areas:
header:
# header area configuration
content:
# content area configuration
footer:
# footer area configuration |
|
Localtab |
---|
| Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
| |
|
|
Area properties
Simple area definition:
Localtab Group |
---|
Localtab |
---|
| Code Block |
---|
| areas:
content:
renderType: freemarker
type: list
availableComponents:
text:
id: my-module:components/text
optional: false
|
|
Localtab |
---|
| Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
| Node name | Value |
---|
|
| |
| |
| |
| | my-module:components/text | | false | | freemarker | | list |
|
|
|
...
Localtab Group |
---|
Localtab |
---|
| Code Block |
---|
| areas:
intro:
type: single
availableComponents:
styledIntroText:
id: my-module:components/styledIntroText
main:
availableComponents:
textImage:
id: my-module:components/textImage
blockQuote:
id: my-module:components/blockQuote
close:
type: noComponent
templateScript: /my-module/templates/misc/close.ftl
|
|
Localtab |
---|
| Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
| Node name | Value |
---|
| |
| |
| |
| |
| | my-module:components/styledIntroText | | single | |
| |
| |
| | my-module:components/textImage | |
| | my-module:components/blockQuote | |
| | /my-module/templates/misc/close.ftl | | noComponent |
|
|
|
...
Areas can contain nested areas, which can in turn contain nested areas. If you use a nested area, you need to assign a separate template script to the parent area in which the child area is rendered.
Localtab Group |
---|
Localtab |
---|
| Code Block |
---|
language | yml |
---|
linenumbers | jstrue |
---|
| areas:
mainnavigation:
typetemplateScript: single/my-web/templates/areas/navigation.ftl
areas:
contentnavigationTeaser:
type: listsingle
availableComponents:
textImagearticleTeaser:
id: my-templatesweb:components/textImage navigationTeaser |
|
Localtab |
---|
| Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
| Node name | Value |
---|
|
| |
| | /my-web/templates/areas/navigation.ftl | |
| |
| | list single | |
| |
| | my-templatesweb:components/textImage navigationTeaser | |
|
|
Creating area nodes
Area nodes are created in the JCR for each configured area by default. This is controlled by the createAreaNode
property that is set to true
by default.
...
Localtab Group |
---|
Localtab |
---|
| Code Block |
---|
| areas:
stockExchangeTicker:
createAreaNode: false
templateScript: /my-module/templates/misc/stockExchangeTicker.ftl
type: noComponent |
|
Localtab |
---|
| Advanced Tables - Table Plus |
---|
heading | 0 |
---|
multiple | false |
---|
enableHeadingAttributes | false |
---|
enableSorting | false |
---|
class | m5-configuration-tree |
---|
enableHighlighting | false |
---|
| Node name | Value |
---|
|
| |
| | false | | /my-module/templates/misc/stockExchangeTicker.ftl | | noComponent |
|
|
|