Skip to content

Commit

Permalink
Merge pull request #787 from ShevArtV/master
Browse files Browse the repository at this point in the history
Уточнения от 8.01.25
  • Loading branch information
ShevArtV authored Jan 8, 2025
2 parents feda60b + 126dd4d commit 81d7e8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/components/sendit/pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@
'setTotal' => 1,
'pagination' => 'three',
'resultBlockSelector' => '[data-pn-result="three"]',
'resultShowMethod' => 'insert'
'resultShowMethod' => 'insert',
'hashParams' => 'pagination,limit,presetName,query'
]}
</div>
Expand Down Expand Up @@ -247,6 +248,7 @@
```php:line-numbers
switch ($modx->event->name) {
case 'OnBeforePageRender':
$SendIt->params['query'] = $_REQUEST['query'] ?? '';
if ($_REQUEST['query']){
$SendIt->params['where']['pagetitle:LIKE'] = '%' . $_REQUEST['query'] . '%';
}
Expand Down

0 comments on commit 81d7e8b

Please sign in to comment.