Hi, I’m very new to Kirby and I was wondering what the best approach is for this?
What you need is a mixture of
The part of getting data from an API, which is for example done in this guide:
or here:
And then the creating pages part from here:
So basically:
- Get the data from the API.
- For each page to create, create an array of data
- For each data array, create the page (either using $page->createChild() to create the page as child of a given page or Page::create()