Hi, is there a way to turn a page model into a section model without doing it all again? I have like 20 entries and overwrite them would be a waste of time. I need them to be sectios so I can fetch them with builder.getAll.
Or is there any other solution to fetch all the page entries from the code and their data (as the builder.getAll). Thanks!
Hi @emiliano , you can do builder.getAll(‘page’) for page models as well, as you can see in our example starters, here: builder/[[...page]].tsx at c7ce7f800eb148bb4d3f035b5bea55c9b2990d75 · BuilderIO/builder · GitHub
Hope that helps! Let me know if you have any other issues
1 Like