Skip to content
Docs

Generate Handlebars Expressions

Updated 22 Sep 2026

Description

Handlebars Expressions can be added to Page Layouts and Content Layouts using the Generate Handlebars Expression button from Page Layouts and Content Types.

The "Generate Handlebars Expression" button is visible when the Layout Processor is set to "Handlebars".

When the button is clicked you can add and customize Handlebars Expressions and copy them for use in your layout. 

In this example we are adding a Nav Object Expression to a Content Layout:

The Generate Expression Builder can be used to generate most of the common Handlebars expressions.

For an extensive list of all available Handlebars Expressions please see the full documentation.

Available expressions

Below is an extensive list of all of the Handlebars expressions you can generate in the Handlebars Expression Builder

  • ifSet
  • publish
  • media
  • mediaId
  • file
  • list
    • with each
  • selected
    • with each
  • selectedNames
  • selectedValues
  • link
  • dateFormat
  • dateElement
  • repeater
  • fulltext
  • fulltextURL
  • contentId
  • contentTypeId (Introduced in 8.4.5)
  • fileSize
  • anchor
  • contentLastModifiedDate
  • expiryDate
  • publishDate
  • createDate
  • pageURL
  • publishURL
  • previewURL
  • canonicalURL
  • section
    • with "field" parameter
  • sectionId
  • sectionName
  • parentSectionId (introduced in 8.4.4)
  • parentSectionName (introduced in 8.4.4)
  • siteId (Introduced in 8.4.5)
  • siteName (Introduced in 8.4.5)
  • siteDescription (Introduced in 8.4.5)
  • sitePublishURL (Introduced in Terminalfour 8.4.5)
  • directEditSection
  • editSection
  • createSection
  • editContent
  • createContent
  • embed
  • snippet
  • preview
  • nav
  • meta
  • if
  • unless
  • eq
  • neq
  • gt
  • gte
  • lt
  • lte
  • and
  • or
  • not

Was this page helpful?

Can't find what you need?

Client Support can help. Help us to help you lists what to put in your issue.

Log an issue