In D6 an audiofile field with two files loaded showed two instances of jplayer - which is fine.
In D7 I only see one jplayer on the page, and no indication that the other file exists. The field is set up as Single.
Examining the field properties for jplayer shows (Single, No, HTML5, No, 80%, No, None, 0). Running on Windows 7 x64 using Firefox 5.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

old_toby’s picture

Status: Active » Needs review
FileSize
6.9 KB

I added a new display mode "multiple" to show more than one single player.

This is my first drupal patch ever. It works, though I'm not sure if it's really done the way it should be.

old_toby’s picture

Ok, the above patch is crap, I have to admit.

This one is much better, simpler and makes much more sense ;-)

bisonbleu’s picture

Issue summary: View changes

Thanks @old_toby, ran into the same issue. Your patch in #2 is a good fix for showing a player for each file.

But it get a few errors/warnings in the process:

Warning: Invalid argument supplied for foreach() in element_children() (line 6517 of /Applications/MAMP/htdocs/d7test/includes/common.inc).
Warning: Cannot use a scalar value as an array in drupal_render() (line 5982 of /Applications/MAMP/htdocs/d7test/includes/common.inc).
Warning: Cannot use a scalar value as an array in drupal_render() (line 6037 of /Applications/MAMP/htdocs/d7test/includes/common.inc).

bisonbleu’s picture

Status: Needs review » Needs work

Setting back to needs work.