FEATURE: Pagination add additional variable for Displaying Results X to Y
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
PHPDevShell |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Using the pagination plugin, and modifying the /themes/
// 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-
%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 |