Answer the question
In order to leave comments, you need to log in
Why is pdoPage not displaying results?
I need to filter the results and I send an ajax request and call the snippet there.
$page = isset($_REQUEST['page']) ? $_REQUEST['page'] : '1';
$results = $modx->runSnippet('pdoPage', array(
'parents' => $category[0],
'resources' => $resources,
'element' => 'msProducts',
'totalVar' => 'products.total',
//'ajaxMode' => 'button',
'ajaxTplMore' => 'more-button',
'tpl' => 'good-row',
'depth' => '1',
'limit' => 0,
'showHidden' => '0',
'includeThumbs' => '320x415',
'sortby' => 'createdon',
'sortdir' => 'DESC',
'includeTVs' => 'filter-age, filter-sex',
'page' => $page
));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question