Can I create a dynamic list of resources using Shopify's metafields?

Hello. I am looking to extend my theme and create a dynamic list of resources for each of my products. I see that I can include a list of URLs or a list of Files via Metafields, but these are very limited because I can’t specify a name/title, and I think it’s also not possible to group multiple fields and make them repeatable.

As an example, ideally I would like to do something like this:

{% for resource in product.metafields.custom.resources.value -%}

{{resource.name}}

{%- endfor %}

Is there anyway I can achieve this with Shopify’s native features? Are there plans to include other content types?

Thanks!

HI @JayZ14 ,

Have you tried creating a list instead? You can achieve this similar function using single-text and list. I believe we can create a JSON object but that would be writing each code

Metafield settings

Product metafield inputs. NOTE: You cannot interchange the list by the way.

Code to call the metafield

{% assign resource = product.metafields.custom.link.value %}
 {{resource[2]}}

Hello @made4Uo , thanks for you reply! Unfortunately I don’t think this would solve my scenario. What I want is a repeatable Link object that I can loop through. So essentially the end result would be something like:

However. You have given me a good idea. I suppose I can create a single text list and add separators in between the values so that I can then evaluate and split them into the different link parts.

Thank you!