Welcome, Guest
Username: Password: Remember me
If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html
  • Page:
  • 1

TOPIC:

Issue with alphabox 1 year 2 weeks ago #5718

  • Ian
  • Ian's Avatar Topic Author
  • Offline
  • Posts: 7
  • Thank you received: 0
Hello,
I have found a curious issue in Joodb with the alphabox. I have a database with around 400 names. This only occurs on one of my databases, not all of them.

When a letter is clicked in the alphabox list of individual letters, and there are more items than can be displayed on one page, clicking "Next" or a number does *not advance the page. The display stays on the first page of the listing.

This bug *only occurs when clicking on individual Letters.

When "All" is selected to display the entire contents, the "Prev | Next" buttons work properly to advance to the next page.

I have reviewed the scripts and everything appears in order. I have attached a copy for review.
Thank you to all who can assist with this,
Ian

This message has an attachment file.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

Issue with alphabox 1 year 1 day ago #5737

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1185
  • Karma: 21
  • Thank you received: 224
It happens because the model resets the start to zero instead of taking the input value.

Please replace line 135 in /components/com_joodb/model/catalog.php
$this->setState('limitstart', 0);

to
$this->setState('limitstart', $app->input->get('start',0));

Alternatively you can replace the model with the following file

This message has an attachment file.
Please log in or register to see it.

Please Log in or Create an account to join the conversation.

Last edit: by Dirk.

Issue with alphabox 1 year 1 day ago #5738

  • Ian
  • Ian's Avatar Topic Author
  • Offline
  • Posts: 7
  • Thank you received: 0
Hi Dirk,
I have applied your fix to the catalog.php file, and it works very well.
The pagenav numbers now correctly advance to the next set of entries.

Thank you very, very much for that update.
It is a real lifesaver.

All the best,
Ian Watson

p.s. if you have a paypal donate feature, please let me know :)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: Dirkjoest