I am planing to add music player to my new clients website, he sells beats soo this is very important. I need to give a custom attribute (in this case the link to the song) for each element(music mp3 player) in the cms list.
Soo far this is all I maneged to do, I made a embed code in the Collection List where I put this code but then when I open the website, only is shown in the first element of the CMS.
I would love to have a diferent link for each element in the cms as the attribute’s value
<script> var anchor = document.getElementById("audio-player-single-track-wrapper"); var att = document.createAttribute("udesly-audio-player"); att.value = "LINKTOSONG(CMS VALUE)"; anchor.setAttributeNode(att); </script>
LINK TO THE WEBSITE LIVE HERE
AND PREVIEW HERE
Thanks in advance