Introducing new enabled_on
/ disabled_on
app blocks schema attributes (deprecating templates
)
Themes
Effective February 26, 2023
Action required
You can now use the new enabled_on
/ disabled_on
app block schema attributes to specify where an app block can be used. These new attributes replace the existing templates
attribute and work for both templates and section groups.
- Use the
enabled_on
attribute to limit an app block to specific templates and section groups. - Use the
disabled_on
attribute to prevent an app block from being used in specific templates and section groups. - These new attributes work for both app blocks and app block embeds.
Please keep in mind that you can use only one of enabled_on
or disabled_on
.