Hi!...Excuse me by post in this thread but I was having the same goal trying get work Simplesearch plugin with getPage in Modx Revo 2.2.6 ... and after search some hours and losing almost all day without luck...I achieve that goal....so I think could be useful for someone else share my solution...so...I found very useful the article of Mark Hamstra(
https://www.markhamstra.com/modx-blog/2011/12/preparing-custom-snippets-for-getpage/)...in that article he explain how to get working getPage plugin Add-on with another plugins...
So...I achieve this in some simple steps:
1. I edited the snippet Simplesearch in the section /* iterate through search results */ and added the lines 4 and 5 like this:
....code...
if (!empty($response['results'])) {
/* iterate through search results */
$totalVar = $modx->getOption('totalVar', $scriptProperties, 'total');
$modx->setPlaceholder($totalVar,$response['total']);
foreach ($response['results'] as $resourceArray) {
$resourceArray['idx'] = $idx;
...code...
2. Then I edited the file "modx_root/core/components/simplesearch/model/simplesearch/driver/simplesearchdriverbasic.class.php" in the search function, about the line 200 as:
...code....
if (!empty($perPage)) {
$limit = $this->modx->getOption('limit',$scriptProperties,10);
// here we use the options for getPage plugin instead default simplesearch pagination...
$offset = $this->modx->getOption('offset',$scriptProperties,0);
$c->limit($limit,$offset);
/*$offset = $this->modx->getOption('start',$this->config,0);
$offsetIndex = $this->modx->getOption('offsetIndex',$this->config,'sisea_offset');
if (isset($_REQUEST[$offsetIndex])) $offset = (int)$_REQUEST[$offsetIndex];
$c->limit($perPage,$offset);*/
}
...code....
3. Almost done...finally I made the call for getPage snippet in the template:
...code...
[[!getPage? &element=`SimpleSearch` &elementClass=`modSnippet` &ids=`14,15,16,10` &exclude=`1,2,6,29,47,10,14,15,16` &idType=`parents` &tpl=`result_item` &containerTpl=`container_results` &highlightResults=`0` &limit=`3` &offset=`0`]]
..code..
<div class="pageNav">[[!+page.nav]]</div>
And that was all...These lines should be modified because getPage works with different variable names of "offset" and "limit" and never knows the total of results to paginate if we dont tell him...I hope it will be helpful for someone because I didn't find any solution like this on the web...also...excuse me english at some point because I don't speak very well....