C
C
Cheizer2018-03-23 13:13:17
CMS
Cheizer, 2018-03-23 13:13:17

MODX REVO pdoPage how to set maximum fetch limit of elements?

Greetings, experts, I broke my head, I can’t understand how to set the maximum limit for loading elements in pdoPage? Limit works, but maxLimit does not, and it is not clear why it is needed, it is written in the docks "The maximum possible sampling limit. Overrides the limit specified by the user via url."
But this way there is no difference, there are 12 positions in total. By default, it shows 3, by the button SHOW it still loads 3 positions, and until the end, until all 12 are loaded. But I need only 9 to load as much as possible. How to do it?

[[pdoPage?
      &limit=`3`
      &maxLimit=`9`
      &ajaxMode=`button`
     ........

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
V
Viktor Yanyshev, 2018-03-23
@villiwalla

&limit=`9`
This is if the number of records per page is in the address bar, i.e. in $_GET, then the user can put, for example, 100500 records to show on the page, from which the server can suffocate. And MaxLimit will ignore the user's setting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question