I'd like to use `enabled_on` to restrict installs to specific alternate templates.

I'd like to use `enabled_on` to restrict installs to specific alternate templates.

cbodtorf
Shopify Partner
9 1 3

I'm getting this error when trying to set `enabled_on` to restrict theme app block installation to a specific page template:

 

{
  "enabled_on": {
    "templates": ["page.contact"]
  }
}

 

=>

Error while updating drafts:
[blocks/my-block.liquid] Invalid tag 'schema': enabled_on.templates[0]: must be one of
404, cart, checkpoint, gift_card, list-collections, password, queue, search, article, blog,
collection, page, product, metaobject, customers/account, customers/activate_account,
customers/addresses, customers/login, customers/order, customers/register,
customers/reset_password, index

I didn't see anything in the docs to help me: 

 

Replies 0 (0)