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!
Still enjoying Version 2 - cool!
Responses (11)
-
Accepted Answer
-
Accepted Answer
0Sorry 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 -
Accepted Answer
0Almost 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: -
Accepted Answer
0This 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 -
Accepted Answer
-
Accepted Answer
0Thanks 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 :-) -
Accepted Answer
-
Accepted Answer
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... -
Accepted Answer
-
Accepted Answer
0Hi, 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!
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »