# Turn pages into sections

**URL:** <https://forum.builder.io/t/turn-pages-into-sections/1874>\
**Category:** General\
**Created:** [March 7, 2022, 7:21pm UTC](https://forum.builder.io/t/turn-pages-into-sections/1874 "2022-03-07T19:21:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![emiliano](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@emiliano](https://forum.builder.io/u/emiliano)\
**Post date:** [March 7, 2022, 7:21pm UTC](https://forum.builder.io/t/turn-pages-into-sections/1874/1 "2022-03-07T19:21:08Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![TimG](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/timg/32/714_2.png) [@TimG](https://forum.builder.io/u/TimG)\
**Post date:** [March 8, 2022, 1:05am UTC](https://forum.builder.io/t/turn-pages-into-sections/1874/2 "2022-03-08T01:05:02Z")

</div>

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](https://github.com/BuilderIO/builder/blob/c7ce7f800eb148bb4d3f035b5bea55c9b2990d75/examples/next-js-simple/pages/%5B%5B...page%5D%5D.tsx#L35)

Hope that helps! Let me know if you have any other issues
