An array of widgets names. This list must be unique.
-
components
Object
No
An object array that uses component IDs as keys, and component's data as values. This attribute needs to contain at least one component if there are no widgets defined. Duplicate IDs within the pages aren't allowed.
-
order
Array
No
An array of component IDs and/or widgets IDs, listed in the order that they should be rendered. The IDs must exist in the components object. Duplicates are not allowed.
Note: The page level route object replaces the need to define a configuration level route. if a route with the identical path is found in both the configuration and at the page level, The page route will override the configuration route.
Attribute
Type
Required
Description
Default Value
path
String
Yes
Human-readable name of the route.
defaults to name of resource
authorize
Boolean
No
Indicates whether authorization is required.
false
systemFunction
String
No
System function associated with the route, if any (e.g., Login, Logout, Checkout).
{"Layout":"main.layout","components":{"image-banner-component-1":{"id":"image-banner-component","enabled":true,"settings":[{"name":"backgroundImage","value":"https://example.com/banner.jpg"}],"blocks":{"heading-block":{"type":"heading","settings":{"heading":"https://example.com/banner.jpg"}},"description-block":{"type":"description","settings":{"descriptionText":"This is a sample description peice of text"}}},"blockOrder":["heading-block","description-block"]}},"order":["image-banner-component-1"]}
Context pages are JSON resources that inherit and override one or many features of the parent JSON pages for a particular context.
A contextual page has three attributes that define the scope of this inheritance
Attribute
Type
Required
Description
Default
parent
String
Yes
The parent JSON page to inherit from
-
context
Object
Yes
An object array with the context scenarios for inheritance
-
page
Object
Yes
Object containing the attributes of the parent page to be overloaded
-
Currently the only context object available is market.
Attribute
Type
Required
Description
Default
markets
String or Array(String)
Yes
The market for the context
Single Market Example: Contextual Page index.intl.json disables the banner_component from index.json if the market scope of the page request is "international"
Multi-Market Example: Contextual Page index.multi.ctxpage disables the banner_component from index.page if the market scope of the page request is "Germany" or "France"