How would I create wagtailmenus menu programatically (that is not through the wagtail admin). If we assume that all the necessary pages exist in the database then what would this look like?
For instance I imagine we would create the main menu record and then add all the main menu item records to it somehow and pass in the relevant pages to the constructor. However even though I can find the model for menu items I haven't managed to find the model for the main top record menu itself. Any idea on how I would go about this?
How would I create wagtailmenus menu programatically (that is not through the wagtail admin). If we assume that all the necessary pages exist in the database then what would this look like?
For instance I imagine we would create the main menu record and then add all the main menu item records to it somehow and pass in the relevant pages to the constructor. However even though I can find the model for menu items I haven't managed to find the model for the main top record menu itself. Any idea on how I would go about this?