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

Options
Sitefolk
Sitefolk Member Posts: 25

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: 25
    Answer ✓
    Options

    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