Is there any way I can add a dynamic data URL into the audio widget?

Sitefolk
Sitefolk Member Posts: 13

Howdy! I am creating some dynamic pages for a website. I need to be able to swap an audio file for each dynamic page. Is this at all possible? Doesn't seem that the audio widget can support dynamic data. Is there a way I can do this with a HTML widget?

Best Answer

  • Sitefolk
    Sitefolk Member Posts: 13
    Answer ✓

    So I've managed to sort this by uploading an mp3 file to my site content. Its called story01.mp3. I also reference the filename as a field in my internal collection. I can then reference the dynamic data in the URL of the audio element. Like the following images:

    I am assuming that when the site is published the file URL path will still remain as it is?

    Anyway, hope this helps someone.

Answers