Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Replacement Variables for Blocks

Article Topics: Blocks

Common Replacements

Replacement Variables can be used to dynamically set the name of elements that appear on various Blocks, such as the Set List Block and the Model List Block, to change the title of lists, or modify the appearance of buttons.

Set Lists

Replacement Variables can be used in text fields on Set Lists to display information that is relevant to that Block and Page.

Take a Model Page, for example, the replacement variable {{models.name}} can be used in the field of various Set List blocks to display the current model's name.

This only has to be set once and will automatically provide the name of the model.

Alongside the name of a model, the total count of content connected to a block can be listed using the {{content.total}} replacement variable in the Header Link Text portion of the Block's Design tab.

Current Sort Order

Use {{sort.name}} in the title of a Set List, Model List, or Metadata List block to show the sort order the visitor is viewing. For example, a title of "{{sort.name}} Videos" shows "Highest Rated Videos" when the visitor chooses Highest Rated.

The text comes from the block's Interactive Sorting options: the text you entered for the selected option is what appears.

Please Note: If the block's current sort order is not one of its Interactive Sorting options, {{sort.name}} shows nothing. This most often happens when the page first loads and the block is using its Display Order. Add your Display Order as an Interactive Sorting option so the title always has text.

If a page has more than one list block, they all follow the same sort order, so each block's title changes when the visitor sorts any one of them.

Replacement Variables

Last updated

Was this helpful?