Liquid error: Object reference not set to an instance of an object.

Liquid function for snippets (Content holders in bc)

{% component type: "snippet", alias: "<snippetAlias>" %}

The result is content rendering of the snippet selected by alias. Content will be returned ONLY if collectionVariable isn't set.

Otherwise return empty string.


Options:

  • type - the name of entity that needs to be used for the component retrieving function.
  • alias - alias of the content holder that need to be used for content output
  • collectionVariable - the liquid variable name that will get the retrieved snippet item's object.
  • Properties:
    • Name
    • Alias
    • Content
  • <custom_named_param> - all name-value pairs of the parameters that are not specified above will be transferred as liquid variables inside the layout.