I'm wanting to convert an existing snippet model into a page model, along with migrating all existing data from the snippet model. Is there a way to do this without having to manually convert the data/ create a script to generate pages from the existing models?
I've updated the model, ran the migrations etc. and can create new pages for this type in the wagtail UI, but the existing data hasn't been migrated over and there's no new page models for it. References/links to the old snippet models are still intact, but there's nowhere to view/edit the model as it no longer appears as a snippet and hasn't been migrated over to a page.
Have you looked at routable pages in Wagtail?
You can keep your data in the snippets and call up the relevant data via the url. Very basic example:
(The 'translatable' code is only needed for multilingual sites)
Templates:
Listing:
Detail:
So with this, example.com/product would give me the productindex page, example.com/product/xyz will load a details page for that product.