Pagination in MC album view

0
Since I can now add new albums at a phenominal rate the front page is getting very long. I saw something somewhere about reducing page sizes with pagination so it continues over several pages but lost it somehow. Is there an answer to this? Not urgent - yet :-)

Still enjoying Version 2 - cool!
Responses (11)
  • Accepted Answer

    Monday, March 01 2010, 04:28 PM - #Permalink
    0
    I dont understand... pagination on album view?? did you mean ARTIST view?

    (for ARTISTS view there's already a pagination :)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 01 2010, 10:33 PM - #Permalink
    0
    Sorry I didn't make it clear. I have MC under the menu option Music Collection » Search and the first page lists all albums with details which is exactly what I want. However, the list is now very long and I would like to make it so that I can have, say 20 albums on a page with a link at the bottom to move to the nest page where more albums will be shown. Have a look at coopsters.com/music to see what I mean.

    Of course this is your fault for making it so easy to add albums ;)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 01 2010, 10:40 PM - #Permalink
    0
    Almost forgot - I know that I can limit the numbers shown when I'm a visitor but I would like to limit it from the backend so that there is only a certain number of albums shown to visitors. They can then use the 'previous - next' navigation to see more but I can't see the way. Maybe I'm spending too much time looking :unsure:
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 01 2010, 10:48 PM - #Permalink
    0
    This is funny :lol:

    what you want is already there. Pagination is included on album search results. He thing is that your list size is set to 100 by default but you dont have 100 albums yet, it looks like theres no pagination, but there is!!! :lol:

    look: go to the bottom of that page and change DISPLAY to 20, for instance, and... Surprise!!!! The links to next pages are there! A brand new pagination shows up, wich you didnt know was already there :)

    try it, you'll laught a while ;)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 01 2010, 10:50 PM - #Permalink
    0
    Oh BTW to change the pagination list size by default, go to your backend > site > global config > list size. Its setted to 100, right? Let it be 20 ;)
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 02 2010, 01:08 AM - #Permalink
    0
    Thanks Germi, The setting in global config doesn't work on my front end pages - only in admin and that's where I like it set to 100. I just wondered if there was a way to set it in MC so it can be less than 100 by default but I can live with it being 100 default. Not really a problem unless someone has a slow computer or connection like my sister in Mazarron :-)
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Tuesday, March 02 2010, 03:19 PM - #Permalink
    0
    Unfortunately I have the same problem with pagination with MC frontpage.
    Mine defaults to 5 but regardless what I do.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 02 2010, 03:24 PM - #Permalink
    0
    :S that's weird... the "default size" is actually taken from the joomla general config..

    anyway, it's very easy to force it to be 20 or whatever:

    open /components/com_muscol/models/search.php

    on line 64 you find this:

    $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');

    all you have to do is replace that $mainframe->getCfg('list_limit') (wich, as you can see, is supposed to return the joomla general config list limit parameter... it should be working... actually, it works on my site pretty well..) for your value, let's say 20, so it looks like:

    $limit = $mainframe->getUserStateFromRequest('global.list.limit', 'limit', 20, 'int');

    that should do the trick, I think...
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 02 2010, 05:52 PM - #Permalink
    0
    Hey, You are 'The Main Man' and that's done the trick. Thank you again for your super fast and very useful help. My sister says thanks too :-)
    The reply is currently minimized Show
  • Accepted Answer

    P
    P
    Offline
    Tuesday, March 02 2010, 07:08 PM - #Permalink
    0
    Spoke too soon, not fixed yet..
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, March 02 2010, 10:48 PM - #Permalink
    0
    Hi, Germi's file edit fixed it for me although I'm not sure why the backend setting didn't work because there's absolutely nothing wrong with his code as far as I can tell and it should work as predicted. Joomla can be a bit like that sometimes and I always have my suspicions about different templates. Are you confident to edit the file or do you need some help? Yell if you need assistance. Cheers!
    The reply is currently minimized Show
Your Reply