Page 1 of 1

Company Directory Pagination

Posted: Fri Oct 08, 2010 1:17 pm
by richardjkeys
Hi there,

I implemented a page limit on my Company Directory tag.

Code: Select all

{CompanyDirectory pagelimit="10"}
Upon loading the page, this works fine - the first 10 companies are shown in the correct summary template; in alphabetical order, with pagination that looks like this:

Code: Select all

<< <  Page 1 Of 75  > >>
Which is to be expected; there are 749 companies in my directory.

However, when I click the next - or last - link, the page shows 5 companies (starting with the letter R!) and the following pagination:

Code: Select all

<< <  Page 2 Of 2  > >>  
Clicking back shows 10 companies, but not starting at the beginning.

Once here, the pagination becomes erratic; you can go backwards and forwards freely - sometimes it shows companies - sometimes not.

I've tried turning off pretty URLs, reset to default templates. Nothing.

Please could someone offer a solution or a helping hand? This is the last big chunk of a project - of course that's just Murphy's Law!

Best Regards,

Rich

p.s. Forgot to mention; these were imported through phpMyAdmin, not added through FEU or imported through the mdult admin. Not sure if this could affect it at all.

Re: Company Directory Pagination

Posted: Thu Oct 21, 2010 2:10 pm
by richardjkeys
Not solved, however I have figured out where it was going wrong.

The pagination was building the URL with a categoryid in it - even though I wasn't restricting categories.

I commented out a line in the module itself - as I have no need for category restriction at this point.

If I do, and fix the code - I'll post it here.