[[!getResources? &parents=`15` &tpl=`articles.authors` &showHidden=`1` ]]
This question has been answered by multiple community members. See the first response.
$groupby = isset($groupby) ? $groupby : '';
/* New code */
if (!empty($groupby)) {
$criteria->groupby($groupby);
}
/* End of new code */
if (!empty($where)) {
$criteria->where($where);
}[[!getResources? &parents=`15` &tpl=`articles.authors` &showHidden=`1` &groupby=`createdby` ]]
pdoTools, and its included snippet pdoResources, includes a groupby property already. http://docs.modx.pro/en/components/pdotools/general-settingsDo you mean that I did something it's already did?
Not with getResources - or at least not as far as I know. pdoResources is another matter. And that's why I've been installing pdoTools and using its various listing snippets (pdoMenu, pdoUsers, pdoResources etc) for years.