Skip to content
Log in

Menu - Liquid Object Reference

On this page

Description

The Menu object contains information about a Menu for the Store. It contains various MenuItems that build up the Menu’s content.

:::note This object supports custom data via the data attribute. :::

Backed by

This drop renders the s_c__Menu__c Salesforce object. A theme writes it as menu.

Liquid attribute Salesforce field
identifier s_c__Identifier__c
style_classes s_c__Style_Class_Names__c

Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.

Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from menu.data. See custom data fields in Liquid.

Attributes

Attribute Type Description
id String Returns the unique id for this Menu
identifier String Returns the value of the Identifier attribute
menu_items List[MenuItem] Returns a list of MenuItems belonging to this Menu
render String Returns the rendered HTML content for this Menu
style_classes String Returns the CSS classes that should be added for this Menu

Available on

Was this article helpful?

Was this article helpful?