$modx->runSnippet('pdoResources', array(
'parents' => (isset($resource) ? $resource : 6),
'depth' => (isset($resource) ? 0 : 1),
'tpl' => 'item.services_page.entertainments.item',
'includeTVs' => 'image,price',
'includeContent' => 1,
'showUnpublished' => 1,
'showHidden' => 0,
'where' => '{"template:=":8,"hidemenu:=":0,"deleted:=":0}',
'hideContainers' => 1,
'limit' => $limit,
'maxLimit' => $limit,
'offset' => ($cur_page - 1) * $limit,
'totalVar' => 'total_selected'
));
return '~'.$modx->getPlaceholder('total_selected').'~';
Returns me
~~
MODX version is 2.6.1. I don't know is version somehow influencing on this issue, but on other site (which on version 2.5.4) all works.
[ed. note: i_am_bars last edited this post 6 years, 11 months ago.]