Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be really handy to have an easy way to assign an id number (ie. id="mp3player_x"
) to each MP3 Player object.
I am loading multiple mp3players using AJAX callbacks, due to this it's assigning id="mp3player_1"
to all of them. At the moment I am doing a messy string replace on the html returned in order to assign a unique id, before injecting it into the DOM.
Perhaps this could be an additional parameter in the theme function, unless someone has a better idea?
Comments
Comment #1
mariusilie CreditAttribution: mariusilie commentedAny news on this?
Comment #2
markie CreditAttribution: markie commentedif you're still interested in this, I am unable to duplicate. I have multiple instances running and it assigns an incremental id on them. If I don't hear from you, I'll assume you've moved on.