change display order

onne
onne
Offline
0
Hi Germi,

It might be me but i can't find the way to change the album display order on the artist page. It listed from old to new now and i want the newest to be seen first...

see http://www.rapsearch.com/mixtapes/w/17-waka-flocka.html

Where can i set this?
Responses (6)
  • Accepted Answer

    Tuesday, December 20 2011, 05:30 PM - #Permalink
    0
    you can't set this by parameter, you need to manually modify the MySQL query that retrieves this data. it's very easy.
    on file /models/artist.php line 214 approx you see this:

    ' ORDER BY year,month ';

    you need to replace it with:

    ' ORDER BY year DESC,month DESC ';
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Tuesday, December 20 2011, 08:10 PM - #Permalink
    0
    That did the trick! thanks
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Thursday, May 31 2012, 07:18 PM - #Permalink
    0
    Germi,

    I had to redo this but in your newer version i now get ' ORDER BY year DESC,month DESC LIMIT 8'; (the edited way)...default is ' ORDER BY year,month LIMIT 8';

    this will show 8 albums right? what if i have more? How can i get a 'page 1/2' link option? I dont want to list too many albums, a page navigation would be good to have :)

    Or can i do this a different way now?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, June 02 2012, 04:35 PM - #Permalink
    0
    hello! yes this will get 8 albums

    but navigation is NOT possible on modules! you are talking about modules, right..?
    if you're talking about the normal page (search page) then there will be no problem, the pagination will appear of course! :)
    The reply is currently minimized Show
  • Accepted Answer

    onne
    onne
    Offline
    Saturday, June 02 2012, 06:11 PM - #Permalink
    0
    ok, just be sure... when a user has 200 tapes all 200 will show on the artist page??..cause thats what i mean... i'd love to see a pagination then... 30 per page or something cause 200 is a lot..lol
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 04 2012, 06:33 PM - #Permalink
    0
    no, if you mean albums on artist page: no, no pagination because it is divided by FORMATS and therefore a pagination is not possible...
    The reply is currently minimized Show
Your Reply