Almost EVERYONE who tried headless systems said they saw benefits. Download the state of CMS now!

O’Reilly Report: Decoupled Applications and Composable Web Architectures - Download Now

Empower your teams & get a 582% ROI: See Storyblok's CMS in action

Skip to main content

Objects

IMPORTANT:

The Objects is OUTDATED and not offered anymore.

Liquid objects contain attributes to output dynamic content on one page/content entry. For example, the story object contains an attribute called name that can be used to output the title of the current content entry.

Liquid objects are also often referred to as Liquid variables.

{{ story.name }} <!-- Output: “Awesome Content Entry” -->

Global Objects

params

Returns the URL query parameters.

{{ params.page }} <!-- Outputs: "1" page if page is in url: ?page=1 -->

request

Returns the request parameters.

  • request.path: Outputs url path
  • request.host: Outputs hostname
{{ request.path }} <!-- Outputs: "/home" if url is: http://example.com/home -->
{{ request.host }} <!-- Outputs: "example.com" if url is: http://example.com/home -->

story

The story object contains the current content entry with the following attributes:

  • name: Name of your current content entry
  • slug: Slug / relative Path of the current content entry.
  • full_slug: Full Slug / absolute Path including all parent folder slugs.
  • created_at: Creation date
  • published_at: Publishing date
  • id: Id of the current content entry
  • uuid: UUID of the current content entry
  • sort_by_date: Date entered in the UI
  • tag_list: Array of Strings added as Tags
  • is_startpage: Know if this is the start page of a folder
  • parent_id: ID of the parent folder
  • alternates: Array of alternate content entries (multilanguage possibilities)
  • group_id: Group id of the alternates

Example:

{{ story.name }} <!-- Output: "Awesome Content Entry" -->