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.
I have a View displaying multiple audio fields using the SoundManager 2 display format. Unfortunately, it appears that with more than one AudioField displayed or generated within a node or view, the SoundManager 2 container is rendered, but the player functionality is not rendered. This is the code generated instead:
<div id="sm2-container-real" class="ui360">
<a href="http://localhost:8082/sites/default/files/01%20American%20Dream%20Preview.mp3"></a>
</div>
<div id="sm2-container-real" class="ui360">
<a href="http://localhost:8082/sites/default/files/04%20Bonfire%20Preview.mp3"></a>
</div>
Any help would be GREATLY appreciated. Thanks in advance.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1788198-audiofield-soundmanager2_support_broken-1.patch | 3.17 KB | willieseabrook |
Comments
Comment #1
willieseabrook CreditAttribution: willieseabrook commentedSoundmanager2 is broken, at least with the latest version v297a-20121104. It doesn't work in views pages. It does currently work on node pages, but based on what I have learned looking at the docs in the last couple of hours, I think this is more by chance than anything.
I have updated the support and significantly changed the way the widget is initialized. This now works on both views and nodes.
See attached patch.
Comment #2
willieseabrook CreditAttribution: willieseabrook commentedComment #3
romansta CreditAttribution: romansta commentedWorks!
Comment #4
schtink CreditAttribution: schtink commentedYour patch works perfectly. Thank you.
Comment #5
Funksmaname CreditAttribution: Funksmaname commentedThanks for the patch!
Comment #6
Alauddin CreditAttribution: Alauddin commentedpatch tested working on the latest version - 7.x-1.0-beta8
Comment #7
jadwigo CreditAttribution: jadwigo commentedit looks like this patch was not integrated in version 1.0
Comment #8
Daniel.Moberly CreditAttribution: Daniel.Moberly commentedThis is fixed in latest dev