FEATURE: Pagination add additional variable for Displaying Results X to Y

Bug #707767 reported by jsherk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PHPDevShell
Fix Released
Undecided
Unassigned

Bug Description

Using the pagination plugin, and modifying the /themes/themename/modules.php file, there is a variable missing in the following section:
// Results Module.
$module['results'] = <<<MODULE
  <div id="pagination">
 <ul id="results" class="ui-widget">
    %1\$s
   %2\$s
   %3\$s
   <li class="pages ui-state-default ui-corner-all">Page %4\$s of %5\$s - Results %11\$s to %6\$s (of %7\$s total)</li>
   %8\$s
   %9\$s
   %10\$s
   </ul>
  </div>
MODULE;

There needs to be an 11th variable added into this section (see %11\$s) in order to display the beginning of the range of results being shown on the particular page being viewed.

For example, if you have $pagination->limitCount = 5; then the first page would be showing Results 1 to 5, and the second page would be showing Results 6 to 10, etc. Currently there is no way to get this first value (the Results 1 or the Results 6).

%6 is the ending value of the results, and %7 is the total number of results, but the first value is not available.

I have added %11 in my example above so you can see where/how I want to use the variable.

Thanks

Changed in phpdevshell:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.