Hello,
I use Phoca Guestbook 3.0.2 on Joomla 3.3.3.
I created menu item "guestbook" and in that page I can view pagination but it doesn't work: when I click on page number, it only add "limitstart=[number]" to page url and refresh the same page.
See this screenshot: http://www.mmhermes.net/sharing/pagination.png
As you can see page 3 has a link in this format: [...]index.php?option=com_phocaguestbook&view=guestbook&cid=118&Itemid=151&limitstart=10
I think it would be [...]index.php?option=com_phocaguestbook&view=guestbook&cid=118&Itemid=151&limit=5&start=10
I tested it and in this way it works, but I don't know where to edit it.
Can you help me?
More info:
in other components, with same url format, pagination works correctly.
Phoca Guestbook 3.0.2 pagination doesn't work
-
- Phoca Newbie
- Posts: 1
- Joined: 03 Oct 2014, 12:19
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Guestbook 3.0.2 pagination doesn't work
Hi, I see, the problem is that the pagination is made by Joomla! there
But if I test it with SEF enabled, it works like expected
And testing Phoca Gallery, which gets the same limitstart but it works ok without any problem there, I will do more tests
Jan
But if I test it with SEF enabled, it works like expected
And testing Phoca Gallery, which gets the same limitstart but it works ok without any problem there, I will do more tests
Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Guestbook 3.0.2 pagination doesn't work
Please try to test the following.
Open the file:
components\com_phocaguestbook\models\guestbook.php
end edit (line cca 284) FROM:
TO:
And let me know if it works for you.
Thank you, Jan
Open the file:
components\com_phocaguestbook\models\guestbook.php
end edit (line cca 284) FROM:
Code: Select all
$start = JRequest::getInt('start', $this->getState('list.start', 0));
$limit = JRequest::getInt('limit', $this->getState('list.limit', $params->get('default_pagination')));
$this->setState('list.start', $start);
$this->setState('list.limit', $limit);
Code: Select all
$start = JRequest::getInt('limitstart', $this->getState('list.limitstart', 0));
$limit = JRequest::getInt('limit', $this->getState('list.limit', $params->get('default_pagination')));
$this->setState('list.start', $start);
$this->setState('list.limit', $limit);
Thank you, Jan
If you find Phoca extensions useful, please support the project
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Guestbook 3.0.2 pagination doesn't work
Hi,
fixed in 3.0.3
Thank you, Jan
fixed in 3.0.3
Thank you, Jan
If you find Phoca extensions useful, please support the project