0
Is it possible to sort tracks in an album by the date of entry ...

I know that you can not enter songs without making it in an album ..
and the only way to enter just a track ... is to make an album ... what if I add tracks ... every week for the same album ... but I wanted it to show latest first ... what do I do..??

Do I have to enter an album for every track??
Responses (9)
  • Accepted Answer

    Thursday, May 03 2012, 09:56 PM - #Permalink
    0
    the only way to achieve this would be actually changing the query that retrieves this data on the model file... are you skilled in MySQL ?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, May 04 2012, 07:56 AM - #Permalink
    0
    hi germi. could you guide me to the mysql model file (which directory is it in)?
    The reply is currently minimized Show
  • Accepted Answer

    Friday, May 04 2012, 01:29 PM - #Permalink
    0
    Yes I can find my way in MySQL and PHP ... just please guide me with what I have to change...

    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Friday, May 04 2012, 08:31 PM - #Permalink
    0
    the file is /components/com_muscol/models/artist.php just look where the ORDER BY clause is and put yours! :)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, May 08 2012, 06:47 PM - #Permalink
    0
    Can you guide me please to the part of code in that file that changing it will result showing the tracks of an album to be sorted by date of adding ..

    I see select statements that I can edit sort by but which one I should modify .. more information about the specific part of code that I should modify is appreciated..
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 09 2012, 11:13 AM - #Permalink
    0
    I thought you are a programmer...!

    the ORDER BY clause is near line 214

    ' ORDER BY year,month ';

    that's whay you need to change for whatever you want! :)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 09 2012, 05:50 PM - #Permalink
    0
    I am a programmer what kept me puzzled that it is already sorting by year, month ... I wanted to make sure we are talking about the same thing ...

    Attached you will find a picture of the details of an album ...
    here you will find tracks ... In our case a track will be added every week ... we want the last track to show as number 1 instead of 10 ... the recent added to show first ...

    I just want to make sure this is what you are guiding me to ... http://www.joomlamusicsolutions.com/images/fbfiles/images/musiccol-20120509.JPG
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, May 09 2012, 07:21 PM - #Permalink
    0
    ok I thought you were talking about artist page. sorry, my mistake :)

    in this case what you need is in models/album.php file, line 342 approx

    ' ORDER BY s.disc_num,s.num ';

    in this case you want to order by s.added
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, May 10 2012, 02:32 PM - #Permalink
    0
    Thank you so much ... that was a great help .. :)
    The reply is currently minimized Show
Your Reply