I’m having an issue with getResources 1.2.0-pl not outputting anything (with parents other than `0`).
Others have reported a similar issue.
My getResources call: [[!getResources? &parents=`[[*id]]` &debug=`1`]]
Running MODx Revolution 2.0.3-pl, getResources 1.2.0-pl, Apache/2.0.46 (CentOS), PHP 5.2.6 (executed via FastCGI), MySQL client API 4.1.24.
It seems strange to me that there is `modResource`.`parent` IN (
1,26,10,24) in the query, when there should only be
one parent (
1)? (1 is the id of the resource - a container - that uses the template containing the call. 26,10 and 24 are children inside that container.)
The full debug output:
[2010-10-06 21:20:03] (ERROR @ /index.php) SELECT `modResource`.`id`, `modResource`.`type`, `modResource`.`contentType`, `modResource`.`pagetitle`, `modResource`.`longtitle`, `modResource`.`description`, `modResource`.`alias`, `modResource`.`link_attributes`, `modResource`.`published`, `modResource`.`pub_date`, `modResource`.`unpub_date`, `modResource`.`parent`, `modResource`.`isfolder`, `modResource`.`introtext`, `modResource`.`richtext`, `modResource`.`template`, `modResource`.`menuindex`, `modResource`.`searchable`, `modResource`.`cacheable`, `modResource`.`createdby`, `modResource`.`createdon`, `modResource`.`editedby`, `modResource`.`editedon`, `modResource`.`deleted`, `modResource`.`deletedon`, `modResource`.`deletedby`, `modResource`.`publishedon`, `modResource`.`publishedby`, `modResource`.`menutitle`, `modResource`.`donthit`, `modResource`.`haskeywords`, `modResource`.`hasmetatags`, `modResource`.`privateweb`, `modResource`.`privatemgr`, `modResource`.`content_dispo`, `modResource`.`hidemenu`, `modResource`.`class_key`, `modResource`.`context_key`, `modResource`.`content_type` FROM `site_content` AS `modResource` WHERE ( ( `modResource`.`parent` IN (1,26,10,24) AND (`modResource`.`context_key` IN (’web’) OR EXISTS(SELECT 1 FROM `context_resource` `ctx` WHERE `ctx`.`resource` = `modResource`.`id` AND `ctx`.`context_key` IN (’web’))) ) AND `modResource`.`deleted` = ’0’ AND `modResource`.`published` = ’1’ AND `modResource`.`hidemenu` = ’0’ ) ORDER BY publishedon DESC LIMIT 5
Any idea what might be wrong?