Sorting on artist page

0
Is there a way to sort the albums on the artist page by a certain condition, say "Date published", instead of when the albums are added?
Responses (5)
  • Accepted Answer

    Saturday, May 05 2012, 05:39 PM - #Permalink
    0
    there's no way to set this via configuration, you would actually need to go down to the file (the MySQL query) to change the order...
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, May 05 2012, 05:48 PM - #Permalink
    0
    Thanks for the quick response. I'd rather not adjust the logic of the component itself, because I'll lose those custom configurations when there's any kind of update.

    That said--does the current logic sort ascending by album ID number? If so, where could I edit those ID numbers? If not, how does it pull so that I can get a workaround in place?

    The problem is that I initially loaded the oldest albums first. In the future, all the the albums I add will of course be the newest ones, so this won't be an issue moving forward.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, May 06 2012, 03:18 PM - #Permalink
    0
    no, it's not by ID number, it's by ALBUM YEAR. this is set in the /components/com_muscol/models/artist.php file... it's quite easy to change! :)
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, August 25 2012, 11:48 PM - #Permalink
    0
    Sorry to resurrect this thread from a while back. If I wanted to change the sort order on the artist page to the catalog number field, descending, where would I look to do that?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, August 30 2012, 05:43 PM - #Permalink
    0
    /components/com_muscol/models/artist.php, just look for the MySQL query and add the sorting option.
    The reply is currently minimized Show
Your Reply