Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

get content bloks via storefront api

get content bloks via storefront api

navarra-lab
Shopify Partner
3 0 1

Hello,

I'm trying to use Storefront API along with next.js to build custom storefront. 
I would like to make use of Shopify's content template/section/block feature to create content for pages in Shopify and display it in my custom next.js storefront. However I don't see possibility to access content blocks with storefront API. I can fetch pages with this API, but they only contain title and body fields and I need more structured content such as blocks/sections. 

Is it possible at all to create complex content for pages in shopify and fetch it via storefront API?
If so, where I can find hints how to do it?

Thanks in advance for your help 🙂

 

 

Reply 1 (1)

HonzaPobořil
Visitor
2 0 1

Hello,

have you found a solution?

 

I want to create frontend in Nuxt and would like to let admins to create pages and products with sections and blocks in a Shopify admin.