← Back to team overview

phpdevshell team mailing list archive

[Bug 707767] [NEW] FEATURE: Pagination add additional variable for Displaying Results X to Y

 

Public bug reported:

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

** Affects: phpdevshell
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/707767

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

Status in Open Source PHP RAD Framework with UI.:
  New

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





Follow ups

References