Objects
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 pathrequest.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 entryslug
: Slug / relative Path of the current content entry.full_slug
: Full Slug / absolute Path including all parent folder slugs.created_at
: Creation datepublished_at
: Publishing dateid
: Id of the current content entryuuid
: UUID of the current content entrysort_by_date
: Date entered in the UItag_list
: Array of Strings added as Tagsis_startpage
: Know if this is the start page of a folderparent_id
: ID of the parent folderalternates
: Array of alternate content entries (multilanguage possibilities)group_id
: Group id of the alternates
Example:
{{ story.name }} <!-- Output: "Awesome Content Entry" -->