FROM CACHE - en_header

Theme App Extension - asset_url access to users theme

Celso_White
Shopify Partner
15 0 9

I have an app that currently relies on posting images to a users theme assets folder. The images are displayed via section code in a users theme.

With the introduction of theme app extensions and app blocks it appears we no longer have asset_url access to a users theme. Can app blocks only pull assets from their own /assets folder? Are there any other url or media filters that are scoped just for the app blocks local files?

Replies 2 (2)
seismo
Shopify Partner
2 0 0

Did you find an answer to this question? In my case, I'd be interested in re-using css and locales from the user's theme in my app block but I get a translation missing error if I try e.g. the following in my app-embed.liquid:

{{ 'customer.login_page.email' | t }}

 

 

Celso_White
Shopify Partner
15 0 9

Unfortunately, I didn't find the answer. I've held off on using app blocks until I find a solution.