Skip to content

Objects

Liquid objects represent variables that you can use to build your theme. Object types include site resources, standard Basker content, and functional elements that help you to build interactivity.

Objects might represent a single data point, or contain multiple properties. Some properties might represent a related object, such as a event in a season.

Usage

Objects, along with their properties, are wrapped in curly brace delimiters {{ }}.

For example, the event object contains a property called title that can be used to output the title of a product.

1
{{ event.title }}

Object access

The way that you access an object depends on the object and the context in which you want to access it. An object might be accessed in the following ways:

  • Globally: The object can be accessed directly in any Liquid theme file.
  • In a template: The object can be accessed directly in specific templates, or in sections or blocks included in the template. For example, you can access the event object directly in a event template, or a section referenced in a event template.
  • Through a parent object: Many objects are returned by another object, or as a property of a parent object. For example, you can access post objects through the global posts object, or through the posts property of the blog object.

Refer to each object to learn about how it can be accessed.

Creating

You can also create your own variables using variable tags. Variables are treated like objects syntactically.

1
{% assign my_variable = 'My custom string.' %}
2
{{ my_variable }}

Event Data Model

event object

An event in Basker.

PropertyTypeDescription
idstring The unique identifier for the Event in Basker CMS.
titlestring The name or title of the Event.
descriptionstring A short description of the event.
imageobject The main image associated with the event.
slugstring The unique, URL-safe identifier for the event.
venuevenue The venue associated with the event. Includes id and name.
companyorganization The production company name, if specified.
startDatestring The start date of the event.
endDatestring The end date of the event.
durationnumber The duration of the event in minutes, if provided.
workwork A reference to the work being performed.
seasonseason The associated season with id and title (e.g., “2024/25 Season”).
seriesseries A series to which the event belongs, if specified.
participantsarray of person groupsGroups of participants, such as cast or crew, with name, role, and id.
blocksarray of blocks A dynamic array of content blocks. Depends on the theme configuration.
mediaarray of media Media assets, including images or videos linked to the event.
instancesarray of event_instance Event performance instances with individual dates and times.
customAttributesobject User-defined custom attributes for the event.
themeobject Developer-defined theme fields for the theme.
metaobject SEO metadata for the event. Includes title, description, and image.
updatedAtstring Timestamp of the last update.
createdAtstring Timestamp of when the event was created.

event_instance object

An event instance represents a single occurrence or performance of an event.

PropertyTypeDescription
idstring The unique identifier for the Event Instance in Basker CMS.
eventevent The parent event details associated with this instance. Includes id.
startDatestring The start date and time of the event instance.
endDatestring The end date and time of the event instance, if specified.
venuevenue The venue where the instance occurs. Includes id and name.
companystring The production company name for this instance, if overridden.
workstring A reference to the work being performed, if overridden.
seriesarray An array of series this instance belongs to. Includes title and id.
participantsarray of person A list of participants (e.g., cast or crew) specific to this instance.
customAttributesobject Custom user-defined attributes specific to this instance.
updatedAtstring Timestamp of the last update to the event instance.
createdAtstring Timestamp of when the event instance was created.

person object

A person entity in Basker CMS.

PropertyTypeDescription
idstring The unique identifier for the person in Basker CMS.
namestring The full name of the person.
firstNamestring The first name of the person.
lastNamestring The last name of the person.
pronounsstring Pronouns associated with the person, e.g., he/him/his.
biography_htmlhtml The person’s biography rendered as HTML
slugstring The unique, URL-safe identifier for the person.
imagemedia Image object associated with the person. Includes url, filename, and dimensions.
blocksarray of blocks A dynamic array of content blocks related to the person.
attributesobject Custom attributes for the person.
createdAtstring Timestamp when the person was created.
updatedAtstring Timestamp when the person was last updated.

season object

A season entity in Basker CMS.

PropertyTypeDescription
idstring The unique identifier for the season in Basker CMS.
titlestring The title of the season.
descriptionstring The description of the season.
slugstring The unique, URL-safe identifier for the season.
startDatestring The start date of the season in ISO 8601 format.
endDatestring The end date of the season in ISO 8601 format.
descriptionstring A description of the season, if available.
eventsarray of events An array of event IDs associated with this season.
blocksarray of blocks A dynamic array of content blocks related to the season.
attributesobject Custom attributes for the season.
createdAtstring Timestamp when the season was created.
updatedAtstring Timestamp when the season was last updated.

series object

A series entity in Basker CMS.

PropertyTypeDescription
idstring The unique identifier for the series in Basker CMS.
titlestring The title of the series.
descriptionstring The description of the series.
slugstring The unique, URL-safe identifier for the series.
descriptionstring A description of the series, if available.
startDatestring The start date of the series in ISO 8601 format.
endDatestring The end date of the series in ISO 8601 format.
eventsarray of events An array of events associated with this series. Includes event IDs.
instancesarray of event_instance An array of event instances tied to the series.
blocksarray of blocks A dynamic array of content blocks related to the series.
attributesobject Custom attributes for the series.
createdAtstring Timestamp when the series was created.
updatedAtstring Timestamp when the series was last updated.

work object

A creative work entity in Basker CMS.

PropertyTypeDescription
idstring The unique identifier for the work in Basker CMS.
titlestring The title of the work.
descriptionstring The description of the creative work.
slugstring The unique, URL-safe identifier for the work.
descriptionstring A description of the work, if available.
authorstring The author or creator of the work. Referenced via ID.
firstPerformedDatestring The date when the work was first performed.
blocksarray of blocks A dynamic array of content blocks related to the work.
attributesobject Custom attributes for the work, such as metadata (e.g., author).
createdAtstring Timestamp when the work was created.
updatedAtstring Timestamp when the work was last updated.

venue object

A venue entity in Basker CMS.

PropertyTypeDescription
idstring The unique identifier for the venue in Basker CMS.
namestring The name of the venue.
descriptionstring The description of the venue.
slugstring The unique, URL-safe identifier for the venue.
countrystring The country where the venue is located (ISO Alpha-2 code).
addressLine1string The first line of the venue’s address.
addressLine2string The second line of the venue’s address, if applicable.
citystring The city where the venue is located.
statestring The state or region where the venue is located.
postalCodestring The postal or ZIP code of the venue.
blocksarray of blocks A dynamic array of content blocks related to the venue.
attributesobject Custom attributes for the venue.
createdAtstring Timestamp when the venue was created.
updatedAtstring Timestamp when the venue was last updated.

organization object

An organization entity in Basker CMS.

PropertyTypeDescription
idstring The unique identifier for the organization in Basker CMS.
namestring The name of the organization.
slugstring The unique, URL-safe identifier for the organization.
descriptionstring A description of the organization, if provided.
typestring The type or category of the organization, if specified.
blocksarray of blocks A dynamic array of content blocks related to the organization.
attributesobject Custom attributes for the organization.
createdAtstring Timestamp when the organization was created.
updatedAtstring Timestamp when the organization was last updated.

Page Model

page object

A page entity in Basker CMS.

PropertyTypeDescription
idstring The unique identifier for the page in Basker CMS.
titlestring The title of the page.
slugstring The unique, URL-safe identifier for the page.
blocksarray of blocks A dynamic array of content blocks on the page.
metaobject SEO meta information including title and description.
breadcrumbsarray of object Navigation breadcrumbs for the page. Includes label and url.
parentstring The parent page, if applicable.
sortnumber The sort order of the page relative to other pages.
themeobject Theme data applied to the page, if any.
createdAtstring Timestamp when the page was created.
updatedAtstring Timestamp when the page was last updated.

theme object

A theme entity in Basker CMS, used to manage styles, templates, and settings for websites.

PropertyTypeDescription
idstring The unique identifier for the theme in Basker CMS.
namestring The name of the theme.
descriptionstring A brief description of the theme, if provided.
authorstring The author of the theme.
versionstring The version number of the theme.
settingsobject A collection of customizable theme settings such as colors, social links, and logo.
manifestobject The theme manifest containing templates, layouts, and block schemas.
filenamestring The uploaded theme file name.
mimeTypestring The MIME type of the theme file.
filesizenumber The size of the theme file in bytes.
urlstring The URL to download the theme file.
createdAtstring Timestamp when the theme was created.
updatedAtstring Timestamp when the theme was last updated.

Manifest

The manifest property contains information about the theme structure, including:

  • Templates: Defines collections, template files, and associated schema.
  • Blocks: A list of reusable content blocks and their settings.
  • Layouts: Layout files for the theme (e.g., default.liquid, system.liquid).
  • Theme Settings: Customizable settings grouped under fields like logo, colors, social, and newsletter.

collection object

A collection entity in Basker CMS, which groups events based on specific conditions.

PropertyTypeDescription
idstring The unique identifier for the collection.
titlestring The title of the collection.
slugstring The URL-safe identifier for the collection.
descriptionstring A textual description of the collection.
typestring The type of collection: manual or automated.
conditionTypestring Specifies whether all or any conditions are required for automation.
conditionsarray of object An array defining the conditions for automated collections.
sortstring Sort order of entities, e.g., performDateAsc.
eventsarray of object A list of events included in the collection.
metaobject Metadata for SEO, including title, description, and image.
createdAtstring Timestamp when the collection was created.
updatedAtstring Timestamp when the collection was last updated.

blog object

A blog entity in Basker CMS, which represents a structured collection of posts.

PropertyTypeDescription
idstring The unique identifier for the blog.
titlestring The title of the blog.
slugstring The URL-safe identifier for the blog.
metaobject Metadata for SEO, including title, description, and image.
imageobject The main image associated with the blog.
createdAtstring Timestamp when the blog was created.
updatedAtstring Timestamp when the blog was last updated.

post object

A post entity in Basker CMS, typically representing a blog post.

PropertyTypeDescription
idstring The unique identifier for the post.
titlestring The title of the post.
slugstring The URL-safe identifier for the post.
ledestring The introductory content or summary of the post.
blocksarray of blocks Content blocks that make up the post’s body.
publishDatestring The date and time when the post was published.
blogstring The blog this post belongs to.
authorsarray of string A list of authors associated with the post.
categoriesarray of string Categories that classify the post.
tagsarray of string Tags for further categorization and searchability.
imageobject Main image associated with the post.
metaobject SEO metadata, including title, description, and image.
createdAtstring Timestamp when the post was created.
updatedAtstring Timestamp when the post was last updated.

tag object

A tag entity in Basker CMS, used to classify and organize content.

PropertyTypeDescription
idstring The unique identifier for the tag in Basker CMS.
titlestring The title or name of the tag.
slugstring The unique, URL-safe identifier for the tag.
editSlugboolean Whether the slug can be edited or not.
tenantstring The tenant that owns the tag.
updatedAtstring Timestamp of the last update to the tag.
createdAtstring Timestamp when the tag was created.

category object

A category entity in Basker CMS, representing hierarchical content grouping.

PropertyTypeDescription
idstring The unique identifier for the category in Basker CMS.
titlestring The title or name of the category.
slugstring The unique, URL-safe identifier for the category.
editSlugboolean Whether the slug can be edited or not.
parentstring The parent category, if applicable.
breadcrumbsarray of object Navigation breadcrumbs for the category, including doc, label, and url.
updatedAtstring Timestamp of the last update to the category.
createdAtstring Timestamp when the category was created.

author object

An author entity in Basker CMS, representing contributors or content creators.

PropertyTypeDescription
idstring The unique identifier for the author in Basker CMS.
firstNamestring The first name of the author.
lastNamestring The last name of the author.
fullNamestring The full name of the author, typically auto-generated.
slugstring The unique, URL-safe identifier for the author.
editSlugboolean Whether the slug can be edited or not.
tenantstring The tenant associated with the author.
updatedAtstring Timestamp of the last update to the author.
createdAtstring Timestamp when the author was created.

redirect object

A redirect entity in Basker CMS, used to map one URL to another.

PropertyTypeDescription
idstring The unique identifier for the redirect.
fromstring The source URL path that triggers the redirect.
toobject The target destination, either an internal link or custom URL.
to.typestring Specifies the type of redirect: internal (reference) or custom.
to.referenceobject The referenced document for internal redirects (e.g., pages).
to.reference.valueobject The target document’s metadata, such as id, title, and slug.
createdAtstring Timestamp when the redirect was created.
updatedAtstring Timestamp when the redirect was last updated.

Media Model

media object

A media entity in Basker CMS, representing uploaded and managed media files, including images and videos.

media object

A media entity in Basker CMS, representing uploaded and managed media files, including images and videos.

PropertyTypeDescription
idstring The unique identifier for the media.
titlestring The title or name of the media file.
filenamestring The name of the media file, including its extension.
prefixstring The file storage prefix or folder path for the media.
mimeTypestring The MIME type of the media (e.g., image/jpeg, video/quicktime).
filesizenumber The file size in bytes.
widthnumber The width of the media in pixels (applicable for images).
heightnumber The height of the media in pixels (applicable for images).
focalXnumber The X-coordinate percentage for the focal point (default is 50, applicable for images).
focalYnumber The Y-coordinate percentage for the focal point (default is 50, applicable for images).
sizesobject Variants of the image at specific sizes, including thumbnail and opengraph (applicable for images).
altstring Alternative text for the media, used for accessibility.
captionstring A caption describing the media.
creditstring Credit information for the media, such as the photographer’s name.
tagsarray of object Tags associated with the media for categorization.
urlstring The full URL path to the media resource.
createdAtstring Timestamp when the media was created.
updatedAtstring Timestamp when the media was last updated.

file object

A file entity in Basker CMS, representing uploaded and managed generic files such as PDFs or documents.

PropertyTypeDescription
idstring The unique identifier for the file.
titlestring The title or name of the file.
filenamestring The name of the file, including its extension.
prefixstring The file storage prefix or folder path for the file.
mimeTypestring The MIME type of the file (e.g., application/pdf).
filesizenumber The file size in bytes.
urlstring The full URL path to the file resource.
tenantobject Metadata related to the tenant that uploaded the file.
createdAtstring Timestamp when the file was created.
updatedAtstring Timestamp when the file was last updated.

media-tags object

A media tag entity in Basker CMS, used for categorizing and tagging media assets.

PropertyTypeDescription
idstring The unique identifier for the media tag.
titlestring The title or name of the media tag.
slugstring The unique, URL-safe identifier for the media tag.
tenantstring The tenant that owns the media tag.
updatedAtstring Timestamp of the last update to the media tag.
createdAtstring Timestamp when the media tag was created.