| Name | Type | Description |
| object_type | String | Will always be datastore_item |
| is_valid | Boolean | True if this references a published menu |
| guid | String | The unique identifier for this menu |
| value | String | Contains the same value as guid |
| name | text | The name of this menu, primarily used for identification and organization |
| items | menu_items | A list containing all of the top-level menu_items in the current menu |
| field_id | String | The identifier for this field |
| label | String | The label for this field |
| output | String | The default output that the menu produces when output directly to the template. The default output may change at any time. Template developers should avoid using this and should handle the output of menus themselves |
Contains multiple menus.
| Name | Type | Description |
| object_type | String | Will always be datastore_item |
| is_valid | Boolean | True if this contains at least one published menu |
| output | String | The default output that the menus will produce when it is output directly to the template - using the "output_in_list" property of each menu in the items list |
| prepended | list | List containing any prepended menus. |
| fetched | list | List containing all of the menus that were fetched from the database (as opposed to prepended or appended). |
| appended | list | List containing any appended menus. |
| appended_unique | list | List containing any appended menus excluding any menus that are in either the list of prepended or fetched menus. |
| items | list | List containing all of the combined menus from the prepended, fetched, and appended lists. If unique is true, this list will not contain any duplicates. If max_size is set, this list will not contain more than the number of menus specified. |
| size | Integer | The total number of menus in the items list, including prepended, fetched, and appended lists, and respecting the unique and max_size properties. |
| max_size | Integer | If set, this is the maximum number of items that will be returned in the items list and the maximum number of items that will be included when this menus object is enumerated as a list. When not set, this value will be 0. |
| unique | Boolean | When true, the items list will not contain any duplicates. Only the first instance of each menu will be included. |
| limit | Integer | The maximum number of items that were allowed to be in the list of fetched menus. May be 0 in some cases (such as when when there are no fetched menus. |
| start | Integer | The 1-based index of the first item in the list of fetched menus. |
| page | Integer | The 1-based index of the paginated results returned in the list of fetched menus, which is calculated from the start and limit parameters. Useful for paginated results. |
| total_count | Integer | The 1-based index of the first item in the list of fetched menus |
| total_pages | Integer |
{% menu output_to_template? [var, set, or assign]? variable? output_to_template? = value %}
Fetching Menu Items
Copy{% menus output_to_template? [var, set, or assign]? variable? output_to_template? = arguments %}
arguments