How to Define Block Type Schema?

dwightco
Tourist
8 0 0

I'm a bit confused on block type schema...

Do they work similarly to "types" in settings such as "image_picker" or "checkbox" where a type means that there's a preset format?

If I do something like:

"blocks": [
    {
      "type": "reward",
      "name": "Reward",
      "settings": [


Does "type": "reward", actually do anything? Is there a list of preset block types? Or do I have the define block types in settings_data.json? And if I do, how should I go about defining them?

Thank you!

0 Likes
paramSoft
Shopify Partner
1444 235 643
"blocks": [
      {
        "type": "quote",
        "name": "Quote",
        "settings": [
          {
            "id": "content",
            "type": "text",
            "label": "Quote"
          }
        ]
      }
]
Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.

Contact Me On : parambabla.soft@gmail.com
0 Likes
dwightco
Tourist
8 0 0

Hi, thanks for your answer, but that wasn't my question!

I would like to clarify a bit: what I'm wondering about is this particular line:

"type": "quote",

 

When "type" is used in a block, are the type presets that I'm trying to create? Where is the "quote" type defined? What is the purpose of defining a block type?

0 Likes
paramSoft
Shopify Partner
1444 235 643

There are several types like radio, checkbox, textarea, richtext where admin can customize from theme customization

Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.

Contact Me On : parambabla.soft@gmail.com
0 Likes