Hi, I'm building a site with Astro and Tina CMS. I have a pages collection where the user can create markdown pages on the site, the routes for the pages are added to the main navigation. I have this all working nicely.
My main issue now is I want to be able to set the order that the page links appear in the main navigation. I'm not sure of the best way to do this, one option is numbering each page in the frontmatter but I think this could get messy as numbers would need to be unique. Another option is storing a list of routes in a file which can be read by Tina as a single page collection, then the order of the list can be changed by dragging and dropping the order in Tina. I have a working draft of this using a manually created list in the frontmatter of a markdown file.
But this could be a bit of a pain to manage, having to manually add the pages to the list. So I'm wondering if I can generate a list by reading all the pages in my collection. So, each time a new page is created, the page would be added to the list.
Sorry, really quite tricky to explain, hope it makes sense. I'm totally open to other options if there is a better way to achieve this.
Any suggestions would be greatly appreciated 👍
Thanks!