CMS MADE SIMPLE FORGE

LISE

 

[#12270] Pagelimit not woking in action category

avatar
Created By: TimdeBuurman (timdebuurman)
Date Submitted: Thu Mar 12 05:19:19 -0400 2020

Assigned To: Fernando Morgado (JoMorg)
Version: 1.3.1
CMSMS Version: 2.2.13
Severity: None
Resolution: None
State: Open
Summary:
Pagelimit not woking in action category
Detailed Description:
If using action category, the pagelimit is not working.
Made a workaround for now:

Found out that the pagelimit is GET in the main LISE module
(lib/class.LISEItemQuery.php)

$pagelimit = $this->GetPageLimit();

I first tried to overrule this by assigning it to a number.
But I noticed that in that case, alle instances, in both frontend as backend
were limited by the inserted number.

So I made it like this:

if($_GET['art']) {
$pagelimit = intval($_GET['art']);
}

Next, I edited the url to go to in the category template and added the variable
'art' with a number: ?art=10


Best would be that the pagelimit will be transfered if using action=category


History