{jr_playlist}
The {jr_playlist} template function is used for embedding the playlist of a Jamroom Radio Station into another template.
Parameters:
Name |
Type |
Required |
Default |
Description |
id |
number |
yes |
n/a |
The "id" parameter tells Jamroom which Radio Station ID you want to display the playlist for. |
limit |
number |
no |
"50" |
The "limit" parameter tells Jamroom the maximum number of songs to return as part of the playlist listing. The default is "50" if no limit is given. |
template |
string |
no |
"jr_playlist.tpl" |
The "template" parameter tells Jamroom the name of the template that should be used for displaying the resulting playlist listing. This template should be located in the Active Skin directory |
tpl_dir |
string |
no |
"skin" |
directory containing the Jamroom template - can be "skin" or "theme" |
theme |
string |
no |
n/a |
if a tpl_dir value of "theme" is given, then the name of the Artist Theme needs to be passed in with the theme parameter |
skin |
string |
no |
n/a |
The skin parameter tells the function to look in the skins/<skin_name> directory to find the template. If this is not supplied, the function will look in the Active Skin directory. |
assign |
string |
no |
n/a |
optional "assign" parameter - if given, the output of the function will be assigned to a template variable of the same name. |
Examples:
embedded {jr_playlist} function call in a Template:
{jr_playlist id="5" limit="10" template="list_ten_playlist.tpl"} |
|