Playlist button for all musics of an Artist
Using Jamroom
making a playlist is a one-at-a-time thing, so if you're wanting to build a way to add 'all this artists music' then you're going to need to build you're own function.
Docs: "Defining your own SMARTY function"
https://www.jamroom.net/the-jamroom-network/documentation/development/1569/defining-your-own-smarty-function
It will probably look like this in the templates:
{nmSomething_add_to_playlist profile_id=$profile_id}
Then in your defined smarty function do a search on the profile id for all the songs and run a foreach loop over the songs and add each to a users playlist.
Take a look inside the:
/modules/jrPlaylist/include.php
file for all the functions available, there's probably something that will do the inclusion for you.
Otherwise you can build the playlist structure thats expected and put that into the playlist modules datastore directly from your module.