Adding file type metafiled to a collapsible row

Adding file type metafiled to a collapsible row

rapidturtle
Excursionist
51 0 8

Hello Shopify Community!

 

I'd like to add a 'file' type metafield to a collapsible row.

However, when I click on the icon (Connect dynamic source) next to 'Row content',

I can't find metafileds that are 'file' type.

 

My guess is that 'file' type metafields are not accepted in collapsible row content.

How can I insert a 'file' type metafield a collapsible row?

 

kport_0-1713232439565.png

kport_1-1713232564962.png

 

Many thanks in advance!

 

 

Replies 2 (2)

Van_Nguyen_GSG
Shopify Partner
161 23 44

Hi Kport,

 

You can achieve this by adding a custom schema setting to the collapsible section > block settings. There are 2 types allowing you to connect to file_reference metafields: image_picker & video.

https://shopify.dev/docs/themes/architecture/settings/dynamic-sources#available-values

Helping Shopify merchants build stores that convert.
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- If you still need help, feel free to reach out to me at: van@glue.sg
Cheers!
rapidturtle
Excursionist
51 0 8

Hello @Van_Nguyen_GSG ,

 

Thank you for your reply.

It seems like I have to work around with JSON template to do that.

Could you explain to me a bit more detail about how to add a custom shcema seeting to the collapsible section please?