Playlist

dimitris
dimitris
Offline
0
Hello, i want to know how can i get the current playlist... i see that every time i press the add button a javascript sent the song_id,playlist id, type in the playlist page...

so I want to get this playlist to show it to another page...

Please can you help me?

Thanks!!!
Responses (5)
  • Accepted Answer

    Saturday, October 01 2011, 06:18 PM - #Permalink
    0
    the default "current" playlist is the one called ON THE GO

    you should create a menu item pointing to Music Collection -> playlists to access all your playlists, including this one.

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    dimitris
    dimitris
    Offline
    Saturday, October 01 2011, 06:37 PM - #Permalink
    0
    Thanks for the quick answer...but i don't want this...i want to to know where the the current playlist saved...in the session? where? because in the database it is not saved before i save the playlist... i want to create an other file exept joomla file to show the current playlist...

    Thanks!!!
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 01 2011, 06:42 PM - #Permalink
    0
    yes, the "ON THE GO" playlist is stored in the session, before it gets saved into the database.
    The reply is currently minimized Show
  • Accepted Answer

    dimitris
    dimitris
    Offline
    Saturday, October 01 2011, 06:50 PM - #Permalink
    0
    $session = &JSession::getInstance('','');
    $playlist_id = $session->get('current_playlist') ; // the playlist is an array

    if(!$playlist_id) $playlist_id = 0;

    $playlist_url = JRoute::_('index.php?option=com_muscol&view=playlist&id='.$playlist_id.'&format=feed&type=xspf') ;
    $encoded_playlist_url = urlencode($playlist_url);


    I see that you get the current playlist with this code from the session... so can you help how i can print the whole array...??


    Thanks!!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, April 16 2012, 08:59 PM - #Permalink
    0
    print_r($playlist_id);
    The reply is currently minimized Show
Your Reply