Navigation Data Model

Navigation menus in the current site.

Sample JSON Data

      {
        "data": {
          "type": "navigations",
          "id": "0dd929b3-d804-4c76-bf53-fda2b17d55ab",
          "attributes": {
            "title": "Global",
            "var-name": "global",
            "description": "Global navigation menu.",
            "file-name": "global_navigation.liquid",
            "content": "<nav class=\"global\">...</nav>",
            "created-at": "2012-04-23T18:25:43.511Z",
            "updated-at": "2012-04-23T18:25:43.511Z"
          }
        }
      }

Attributes

Attribute Type Required Description
title string Yes Title of navigation menu.
var-name string Yes Name of variable to reference this navigation menu in the layout’s Liquid markup.
file-name string Yes Name of navigation menu file in theme’s navigation folder. Must have an extension of .liquid.
description string No A description of the navigation menu that will appear within the Live Editor admin interface.
content string Yes Content of navigation menu. Can include Liquid markup relevant to navigation menus.
created-at date Read-only Timestamp recording when navigation menu was created, localized to the current logged in user’s time zone.
updated-at date Read-only Date and time navigation menu record was last updated, localized to the current logged in user’s time zone.

Relationships

None.

Related