-
- 5,888 Posts
seems, you have furls off
try to change this part of the snippet to:
$url=$modx->makeUrl($ajaxpage);
$furls = $modx->getOption('friendly_urls');
$qstring = !empty($furls) ? '?page=' : '&page=';
$js="
<script>
$(document).ready(function() {
new Paginator('{$url}',{qString : '{$qstring}'});
});
</script>
";
$modx->regClientStartupHTMLBlock($js);
-
- 151 Posts
This is a rather old topic, but you never know if somebody needs it, so here's my contribution:
I don't use getPage for pagination, I use getResources with a limit of 0 in combination with the plugin MixItUp. Also with this combination some powerful filtering and sorting is possible.
Remark: MixItUp is not free for commercial use.