How to show theme schema blocks divided by category?

Highlighted
Excursionist
19 3 2

Hello,

I have created a section on the theme schema that lists shops. It has two categories of shops.
When I do Add Content I'm able to choose in which category goes into. However, they stay grouped together.
Ideally I would like to separate them by the Category (see the green selection on the image).
store_schema.jpg
Is it possible to create this schema layout?

0 Likes
Highlighted
Pathfinder
103 8 16

I am not 100% sure if this will work without seeing the code and toying with it, but you could try using headers.

 

https://help.shopify.com/en/themes/development/theme-editor/settings-schema#header-setting-type

0 Likes
Highlighted
Excursionist
19 3 2

Hi,

Unfortunately it seems we can't set headers inside blocks, as in:

 

"blocks": [
	{
	"type": "category1-store",
	"name": {
	"en": "Category 1",
	}
]

 

 

0 Likes