nick_sh Posted July 15, 2021 Share Posted July 15, 2021 Is there a way to get ALL items from a collection (blog, portfolio, etc) with json? When I'm trying to add "?format=json-pretty" to the collection page, it only shows first 20 items and next page offset. Ideally I'd like to somehow access all items at once, rather than doing several queries for 20 items each. Is that possible at all? Beyondspace 1 Hire me for SquareSpace development Link to comment
Beyondspace Posted July 16, 2021 Share Posted July 16, 2021 On 7/15/2021 at 9:00 PM, nick_sh said: Is there a way to get ALL items from a collection (blog, portfolio, etc) with json? When I'm trying to add "?format=json-pretty" to the collection page, it only shows first 20 items and next page offset. Ideally I'd like to somehow access all items at once, rather than doing several queries for 20 items each. Is that possible at all? You need to do offset request, that is squarespace limit, you can also cache the result somewhere to access them faster each time BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations) 🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates) If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you! Link to comment
nick_sh Posted July 20, 2021 Author Share Posted July 20, 2021 Yes, seems like 7.1 doesn't allow to get all collections anymore, while 7.0 had all collections' data available on the homepage. 😰 Beyondspace 1 Hire me for SquareSpace development Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment