Hello i have created an Metafield and set it in the backend with value up, now i´ve coded data files to download but my problem is that i want to know how i can add more files and that they get under the first file?
My Code
[ Click me to open ](https://cdn.shopify.com/s/files/1/0642/2741/0135/files/Hakoh_Declaration_of_Conformity.pdf?v=1662026128=)
and under this it should be a also the same but an other file, could someone please help me out.
I do not know if I understand the question correctly. You want to have multiple links in a product with a corresponding title?
There are several ways to do this. You can create two metafields, one for the link and one for the title. You will need to connect them together, so you make sure you have the same number of link and title entered.
Make sure you have the same number of list for both the title and link. Then you can use the code below to call it
{% assign title = product.metafields.custom.title.value %}
{% for link in product.metafields.custom.custom_link.value %}
{{ title[forloop.index0] }}
{% endfor %}
I’m sorry that I expressed myself very poorly, so I would like to upload datasheets from my products and have now created a meta field in which I can upload my datasheets with Html codes, but I want to upload several datasheets and I want the Get command, how can I set by command that another data sheet as I also wrote it as code is displayed underneath, with the exact same code?