rejetto forum

Results per page?

0 Members and 1 Guest are viewing this topic.

Offline __Lopho

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
How can I increase from 25 to 50 or more?


Offline bmartino1

  • Tireless poster
  • ****
    • Posts: 910
  • I'm only trying to help i mean no offense.
    • View Profile
    • My HFS Google Drive Shared Link

Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
The number of files displayed is calculated automatically to fit on the web page, so if you play on the zoom of the page and update it, the number will not be the same.

Everything happens in the pageit() function of the template in the line
  var rows = $('#files tr');

if you want to change it insert this line just under the previous

rows = 50;


Quote
function pageIt(anim) {
    var rows = $('#files tr');
    rows = 50;
    if (!rows.size()) return;
    page = 0; // this is global


To modify the template in this way is quite simple but I prefer a similar solution that allows to master the values to modify

To obtain the desired result, without losing the advantage of automating pages, we will introduce two additional parameters in this case: the number of files per page option.perpage=50 and an automation option.autopaged=(0 or 1)

Quote
[+special:strings]
option.paged=1
option.autopaged=0
option.perpage=50


Quote
function pageIt(anim) {
    var rows = $('#files tr');
    if (!{.!option.autopaged.}) rows = {.!option.perpage.};
    if (!rows.size()) return;
    page = 0; // this is global

Change the value of auto.paged to 1 and the default paging works again  ;)