Skip to content

Commit 81d7e8b

Browse files
authored
Merge pull request #787 from ShevArtV/master
Уточнения от 8.01.25
2 parents feda60b + 126dd4d commit 81d7e8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/components/sendit/pagination.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@
212212
'setTotal' => 1,
213213
'pagination' => 'three',
214214
'resultBlockSelector' => '[data-pn-result="three"]',
215-
'resultShowMethod' => 'insert'
215+
'resultShowMethod' => 'insert',
216+
'hashParams' => 'pagination,limit,presetName,query'
216217
]}
217218
</div>
218219
@@ -247,6 +248,7 @@
247248
```php:line-numbers
248249
switch ($modx->event->name) {
249250
case 'OnBeforePageRender':
251+
$SendIt->params['query'] = $_REQUEST['query'] ?? '';
250252
if ($_REQUEST['query']){
251253
$SendIt->params['where']['pagetitle:LIKE'] = '%' . $_REQUEST['query'] . '%';
252254
}

0 commit comments

Comments
 (0)