Banner buttons
Audience: CMS editors, integrators, and developers.
Banner actions use one required group object. All group and item properties are
required. Item IDs are unique within a group. The order of items is the display
order. CMS editors can reorder items with the up and down arrow buttons.
Layout
Ordered actions. CMS writes use IDs; public responses contain resolved resources.
Alignment of the button group. Heading alignment is a separate setting.
Keep each button at its content width, or expand buttons to fill their row.
Wrap buttons into additional rows, or change the whole group to one column when the complete row cannot fit.
CMS group
Use BannerButtonsConfig in CMS and MCP writes. Store the group in
Banner.bannerConfig.buttons. Each HeroSlide has its own buttons JSON field.
type BannerButtonConfig = {
id: string;
action: BannerButtonAction;
text: string | null;
ctaLinkId: string | null;
contactFormId: string | null;
themeId: string | null;
style: 'primary' | 'secondary' | 'tertiary';
};
type BannerButtonsConfig = {
items: BannerButtonConfig[];
align: 'left' | 'center' | 'right';
width: 'intrinsic' | 'stretch';
overflow: 'wrap' | 'stack';
};themeId: null explicitly inherits the surrounding theme. Style is always
explicit; null is invalid. Unused resource IDs must be null. The CMS checks
resource existence and access before saving. It prevents deletion of a Link,
ContactForm, or Theme while a button references that record.
{
"items": [
{
"id": "offers",
"action": "link",
"text": "View offers",
"ctaLinkId": "link-id",
"contactFormId": null,
"themeId": null,
"style": "primary"
}
],
"align": "center",
"width": "intrinsic",
"overflow": "wrap"
}Public group
The backend returns BannerButtons. Each item contains resolved resources.
Send the CMS format above when you create or update content.
type BannerButton = {
id: string;
action: BannerButtonAction;
text: string | null;
style: 'primary' | 'secondary' | 'tertiary';
theme: Theme | null;
url: DynamicLink | null;
contactForm: DynamicForm | null;
};
type BannerButtons = {
items: BannerButton[];
align: 'left' | 'center' | 'right';
width: 'intrinsic' | 'stretch';
overflow: 'wrap' | 'stack';
};See Theme, DynamicLink, and DynamicForm for the resolved resource types. Item text and style control ordinary CTA labels and appearance. Link rows and breadcrumbs retain their image navigation.
Actions
BannerButtonAction permits these values. Each owner permits only the actions
listed in the next table. Fixed actions can occur only once in a group.
| Action | CMS resource | Text |
|---|---|---|
link | Required ctaLinkId | Required nonempty text |
contactForm | Required contactFormId | Required nonempty text |
customerLogin | Required ctaLinkId for the OAuth return target | Required nonempty text |
customerAccount | Required ctaLinkId for the signed-in destination | Required nonempty text |
archiveSearch | ctaLinkId, or null for inline results | Text or explicit null |
entityContact | Required contactFormId; the owner supplies entity context | Text or explicit null |
consumptionInfo | The banner’s vehicle; both resource IDs are null | Text or explicit null |
checkout | The live cart; both resource IDs are null | Text or explicit null |
Null text explicitly selects the fixed action’s built-in translated label. It is
valid only for archiveSearch, entityContact, consumptionInfo, and checkout.
The banner controller retains loading states, tracking, login state selection,
search filters, and form context.
Owner limits
The @haendlerapp/shared/cms entry exports getBannerFieldDefinition and
HERO_SLIDE_BUTTON_FIELD. The lookup reads each banner’s buttons field from
the shared field registry. The HeroSlide definition supplies its nested group.
These definitions supply the CMS, editor, and MCP metadata with min, amount, and actions. A null
amount means no maximum. Add is disabled at the maximum. Empty groups are valid
only where the minimum is zero. Groups are never truncated or repaired.
| Owner | Field | Minimum | Maximum | Actions |
|---|---|---|---|---|
| Button Block | buttons | 0 | Unlimited | link, contactForm |
| Headline | buttons | 0 | 3 | link, contactForm |
| Tile card | buttons | 1 | 2 | link, contactForm |
| HeroSlide | buttons | 0 | 3 | link, contactForm |
| Pricing | buttons | 0 | 2 | link, contactForm |
| Link row and breadcrumbs | buttons | 0 | Unlimited | link |
| Customer account login | buttons | 2 | 2 | One customerLogin and one customerAccount |
| Cart | buttons | 1 | 1 | checkout |
| Consumption information | buttons | 1 | 1 | consumptionInfo |
| Deal, inventory, product, and collection search archives | buttons | 1 | 1 | archiveSearch |
| Contact person and inventory vehicle | buttons | 0 | 1 | entityContact |
| Deal | buttons | 1 | 1 | entityContact |
The application accepts only this group format. Before deployment, follow the manual migration plan .