- Posts: 5
COMMUNITY FORUM
BUGFIX: pagination
- ricfio
- Topic Author
- Offline
- New Member
Less
More
14 years 5 months ago #82262
by ricfio
BUGFIX: pagination was created by ricfio
Hi, I have fix a "pagination" bug as follow:
/**********************************************************************//* BUGFIX: pagination/**********************************************************************/[FILE]- /components/com_k2/views/itemlist/view.html.php
[CONTEXT]=> function display($tpl = null) {
[SEARCH]$pagination = new JPagination($total, $limitstart, $limit);
[REPLACE]if ($this->getLayout() == 'category') { $pagination = new JPagination($total, $limitstart, $limit - $params->get('num_links'));} else { $pagination = new JPagination($total, $limitstart, $limit);}/**********************************************************************/
/**********************************************************************//* BUGFIX: pagination/**********************************************************************/[FILE]- /components/com_k2/views/itemlist/view.html.php
[CONTEXT]=> function display($tpl = null) {
[SEARCH]$pagination = new JPagination($total, $limitstart, $limit);
[REPLACE]if ($this->getLayout() == 'category') { $pagination = new JPagination($total, $limitstart, $limit - $params->get('num_links'));} else { $pagination = new JPagination($total, $limitstart, $limit);}/**********************************************************************/
Please Log in or Create an account to join the conversation.
- Jakub Jedynak
- Offline
- Senior Member
Less
More
- Posts: 56
13 years 11 months ago #82263
by Jakub Jedynak
Replied by Jakub Jedynak on topic BUGFIX: pagination
Thank you very, very much!
Please Log in or Create an account to join the conversation.
- ricfio
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
13 years 11 months ago #82264
by ricfio
Replied by ricfio on topic BUGFIX: pagination
Qbin2001 said:Thank you very, very much!
;)
;)
Please Log in or Create an account to join the conversation.
- Simon Olsen
- Offline
- Junior Member
Less
More
- Posts: 34
13 years 10 months ago #82265
by Simon Olsen
Replied by Simon Olsen on topic BUGFIX: pagination
Does this fix the pagination issue that when you Click NEXT or Page 2, it goes to Page 3 instead? Or is this hack for a different issue? We're running K2 v2.4.1
Please Log in or Create an account to join the conversation.
- ricfio
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
13 years 10 months ago #82266
by ricfio
Replied by ricfio on topic BUGFIX: pagination
Hi,
... when you Click NEXT or Page 2, it goes to Page 3 instead.
... when you Click NEXT or Page 2, it goes to Page 3 instead.
Please Log in or Create an account to join the conversation.
- Simon Olsen
- Offline
- Junior Member
Less
More
- Posts: 34
13 years 10 months ago #82267
by Simon Olsen
Replied by Simon Olsen on topic BUGFIX: pagination
This didn't fix my issue. It's still skipping from page 1 to 3.
I use AceSEF PRO 1.5.7 and I purged all of my SEF URLs.
I also tested this hack on two different K2 categories. I still can't get to page 2. And on one of the categories, it I changes the SEF URL to /page-15.html it would go to page 2.
I use AceSEF PRO 1.5.7 and I purged all of my SEF URLs.
I also tested this hack on two different K2 categories. I still can't get to page 2. And on one of the categories, it I changes the SEF URL to /page-15.html it would go to page 2.
Please Log in or Create an account to join the conversation.