I can't figure out how to make a song downloadable. Everything plays fine but no download link. The players on the jplayer website will allow for downloading but I haven't been able to figure out where/how to alter the code for this one to do that.
I tried using jplayer via the audiofield module which has an option to include a download link which it does, right under the player and that's fine for a single song. But if you use a playlist audiofield creates a new instance of jplayer for each song, each with a download link, but each player has the entire playlist included on it. So if you have five songs you get five players each with five songs.
I'd like to have one player with a playlist with each song having a download link.
Suggestions?
Comments
Comment #2
hadiseh commentedhi
Edit THEME.info
add:
scripts[] = js/dow.jsCreate File: dow.js
themes folder sites/all/themes/Yourtheme/js/dow.js
add this code:
css style:
For this to work in most browsers, I also had to add the following lines to my site’s .htaccess file…
clear all caches: admin/config/development/performance
Comment #3
Pixelstack commentedHi there,
Thank you for sharing this, it is exactly what I needed.
Is there an easy way to force this file to download instead of opening in a new window?
Thanks!