Company Directory Pagination

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
richardjkeys
Forum Members
Forum Members
Posts: 15
Joined: Mon Sep 27, 2010 12:14 pm

Company Directory Pagination

Post 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.
richardjkeys
Forum Members
Forum Members
Posts: 15
Joined: Mon Sep 27, 2010 12:14 pm

Re: Company Directory Pagination

Post 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.
Post Reply

Return to “Modules/Add-Ons”