Project

General

Profile

Actions

Feature proposal #1707

closed

Insert limit pagination value in urls (needed by SEF extensions)

Added by shumisha almost 14 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
30 May 2010
Due date:
% Done:

100%

Estimated time:
0:18 h

Description

As per talk with Beat, we'd like C pagination class to insert the "limit" value (number of items per page) in its url. Though it appears to no be used by CB, this will allow SEF extensions to properly calculate page numbers. Currently, only starting item number ("limitstart") is found in the url, similar to what Joomla is doing.
Extensions that use Joomla JPagination class are handled by sh404sef, but as CB use its own pagination class, we cannot override it.

Appropriate code has been discussed with Beat, but you can contact me at shumisha at gmail dot com for details as needed

Actions #1

Updated by beat almost 14 years ago

  • Target version set to CB 1.2.3
  • Estimated time set to 0:18 h
Actions #2

Updated by beat almost 14 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 90

Implemented as follows:

In function writePagesLinks($limitstart, $limit, $total,$ue_base_url,$search=null,$prefix='')

Around line 886 of comprofiler.class changed it to:

$limstart_str    =    '&' . urlencode($prefix) . 'limit=' . (int) $limit . '&'.urlencode($prefix) . 'limitstart=';

Could you please confirm that this is the fix you wanted ?
Thanks,
Beat

Committed in r1016.

Actions #3

Updated by shumisha almost 14 years ago

Hi Beat

Yes, that's what seems to be working fine in my test!

Yannick

Actions #4

Updated by beat almost 14 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100

Cool, thanks, closing.

Actions #5

Updated by beat almost 14 years ago

  • Subject changed from Insert limit pagination value in urls to Insert limit pagination value in urls (needed by SEF extensions)
Actions

Also available in: Atom PDF