Hello :)

I use the jPlayer module with CCK's Filefield and Views (jPlayer Style Plugin) to create a playlist. Everything works great so far. :)
Now I need to display the node's links "edit" and "delete" along with the actual mp3 field inside the playlist.
Currently this additionally fields are printed inside the mp3-link field.
Maybe I'm simply missing something? :)

If it's simpler I would also override the jplayer.tpl.php and put the needed links there but I couldn't call the $node variable.

Help is much appreciated.

Thank you! :)
Stefan

Comments

stevetweeddale’s picture

StatusFileSize
new6.26 KB

I wanted this functionality too - the ability to include arbitrary fields in the playlist views seemed to be a big potential functionality/flexibility boost. There's tonnes of use-cases: ecommerce links, taxonomy 'genre/album' fields, node edit/delete links for admins...it seems a shame not use utilize the flexibility that comes from being an HTML based player. Currently all fields get wrapped up together in the label link, so you're limited to just mucking about with the link text. So, here's a first attempt patch at removing this limitation.

In addition to specifying which field(s) you want to provide the audio file url, you can now specify which field to use for the track 'label' (if none is provided, the filename is used). This is the clickable field that selects the track in the player. Any other fields that are then added to the view get rendered as per-usual after the label within the playlist view.

In honesty, it appears the current release doesn't work with views, and needs patching (see #919700: Views Oddity) already. Since I was rewriting some of that code anyway, I've incorporated that fix into this patch.

I tested with both branches of views (in D6) and it seems to work fine - would love to see this make it into the module!

stevetweeddale’s picture

Category: support » feature
Status: Active » Needs review
StatusFileSize
new5.64 KB

Apologies, I accidentally left in some debugging code in there. Furthermore, I realised a minor change was needed to the js as well for links other than the label to be actually clickable. This one should work.

CandC540’s picture

#2 failed.

Getting white screen of death.

CandC540’s picture

Status: Needs review » Needs work
stevetweeddale’s picture

Weird, I'm running that patch with drush make on a QA site right now...works fine. I'll check later which version of the module the patch was made against...

stevetweeddale’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-beta3

Hmm, not sure what's going wrong for you, it's working fine here when applied to 1.x-beta3...any more details that might help me reproduce the problem?

I've changed the issue version to reflect the version the patch was against...

CandC540’s picture

Version: 6.x-1.0-beta3 » 6.x-1.0-beta2

I'm not sure why it's not working either. I'm running a site with 4 languages using the Sky theme. Could it be the views translation module? I also have a bunch of other translation modules enabled. The player works before the patch, but after the patch I get the white screen of death. Let me know what other info you might need to reproduce the issue.

CandC540’s picture

Version: 6.x-1.0-beta2 » 6.x-1.0-beta3

Accidentally selected the wrong version. Updating to 6.x-1.0-beta3

ionz149’s picture

any ideas on how I could make this work on 6.x-1.0-beta4? (not sure if this requires a version change from the dropdown)

any tips, hints, ideas or work-arounds would be much appreciated

tr33m4n’s picture

Issue summary: View changes

Would love this for D7, any updates?

tr33m4n’s picture

Version: 6.x-1.0-beta3 » 7.x-2.x-dev
tashaharrison80’s picture

I'm looking for a D7 answer to this too. Any ideas?