How can I render a specific app block in a Dawn theme's code?

I’ve noticed that main-product.liquid now have a "{%- for block in section.blocks %}. And inside that a {% case block.type -%} rendering the blocks by type.

But when I try to render the @Apps_6 block, it brings me all installed apps and not a specific one.

Does anyone know a tutorial or documentation where I can learn more about blocks inside a theme’s code?

Thanks!

Hi @guilhermealbino ,

When you declare with ‘@app’, it will list all Apps and you just need to go to Customize and select one of the Apps to display. Refer

Hope it helps!

And how would that look inside the theme code?
I tried to create a section in the “edit code” and make it show the block of apps like you showed. It worked, but it doesn’t appear in the product layout.

And how it looks at customize page (Inventory Management is my custom section):

It does not appear in Customize.

Thank you for helping!

Hi @guilhermealbino ,

Did you get it out with ‘for block’?

Refer code:

{%- for block in section.blocks -%}
  {%- case block.type -%}
    {%- when '@app' -%}
      {% render block %}
  {%- endcase -%}
{%- endfor -%}

Hope it helps!