I have the following call to ditto that uses pagination:
return $modx->runSnippet('Ditto', array('parents'=>($_REQUEST['location'] ? $_REQUEST['location'] : PROPERTY_FOLDER), 'depth'=>'0', 'filter'=>$filter, 'tpl'=>'quickSearchResultsDittoTpl', 'noResults'=>'<p id="no-finds-msg">No properties found.</p>', 'display'=>'all', 'phx'=>'0', 'id'=>'doclist', 'paginate'=>'1', 'summarize'=>$itemsperpage, 'paginateAlwaysShowLinks'=>'1', 'tplPaginatePrevious'=>'PaginatePreviousDittoTpl', 'tplPaginateNext'=>'PaginateNextDittoTpl', 'tplPaginatePreviousOff'=>'PaginatePreviousOffDittoTpl', 'tplPaginateNextOff'=>'PaginateNextOffDittoTpl', 'tplPaginatePage'=>'PaginatePageDittoTpl', 'tplPaginateCurrentPage'=>'PaginatePageCurrentDittoTpl'));
With phx enabled the pagination placeholders are ignored.
I have read this
http://modxcms.com/forums/index.php?topic=40243.0, but that only seems to apply to Ditto when called in the usual way from a template.
One workaround would be to write individual snippets to fill in the separate ditto parameters so the ditto call could be in the template e.g.
[[Ditto? &parents=`[!location!]` ....]]
but I am wondering if its possible to avoid this and keep the Ditto call within the snippet?
Alternatively, can phx be disabled for individual documents/templates without hacking phx?
-- Tim.