Footer
object
Footer templates define their own schema, in a similar way to blocks. All of the attributes defined on a footer’s schema are made available via the Footer
object.
For example, consider the following footer schema:
---
max_item_levels: 1
supports_open_new_tab: true
attributes:
image:
type: image
label: Image
group: design
background_colour:
label: Background colour
type: color
default: { palette: body-bg }
group: design
---
Within the footer template, footer.image
and footer.background_colour
will be available. In this scenario, footer.image
will return an Image object and footer.background_colour
will return a Color object.
As well as the attributes that are available from the schema, the Footer
object has the following attributes:
Attributes
footer.items
array of footer items
An array of the footer items.