Multi level Navigation management

Hi,
Is there an official way to manage multi-level site navigation?
I know it can be done via collection or something else. but I want to maximize content writing comfortability.

Thanks

Hey!

Not sure if this is exactly what you’re looking for, but I was looking for an easy way to build a menu similar to WordPress. I have multiple pages, but I don’t want to query the whole “pages” collection end point.

I came up with a singleton with a repeater, and a set, with options for title and url.

Hope this helps if you’re looking to achieve something similar.

Result

Code

{
    "field": {
        "type": "set",
        "label": "navigation",
        "options": {
            "fields": [
                {
                    "name": "title",
                    "type": "text"
                },
                {
                    "name": "url",
                    "type": "text"
                }
            ] 
        }
    }
}

Found a way to have sub links nested

{
  "field": {
    "type": "set",
    "label": "Navigation",
    "options": {
      "fields": [
        {
          "name": "Title",
          "type": "text"
        },
        {
          "name": "URL",
          "type": "text"
        },
        {
          "name": "sub-links",
          "type": "repeater",
          "label": "Sub Links",
          "options": {
            "field": {
              "type": "set",
              "label": "Navigation",
              "options": {
                "fields": [
                  {
                    "name": "Title",
                    "type": "text"
                  },
                  {
                    "name": "URL",
                    "type": "text"
                  }
                ]
              }
            }
          }
        }
      ]
    }
  }
}