Component
In this article
The default component layout uses a main column with a smaller column aside.
Desktop:
block
columns 3
block:group1:2
columns 1
before
content
after
end
aside:1
Mobile:
block columns 1 aside before content after
The aside column can be customized by overriding the partial:
partials/component-aside.html
To fully customize the component override the component layout:
component.html
Containers
To add custom widgets to the component, append them to one of the containers:
component:aside- widget is placed in the aside column.component:top- widget is placed above the main content.component:bottom- widget is placed below the main content.
context.addTemplateBlock("component:top", "awesome-doodad", {
filename: "partials/awesome-doodad.html",
});