Getting incredibly frustrated trying to get getPage or getResources working, everything I do results in an array being dumped.
This is an example of one of the many code snippets I have tried:
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`26`
&depth=`2`
&limit=`10`
&pageVarKey=`page`
&includeTVs=`1`
&includeContent=`1`
&tpl=`newsListItem`
&debug=`1`
]]
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
and the very simple contents of newsListItem:
- Yes, I’m using backticks, not quotes.
- Yes, the template exists and is spelt correctly with the correct case.
- I’ve tried creating new templates and I’ve tried re-writing the snippet.
- The parent resource exists and there are child resources underneath. The child resources are included in the array output.
The error log contains the following unhelpful error message:
[2011-04-17 12:46:43] (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`.`content`, `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 `modx_site_content` AS `modResource` WHERE ( ( modResource.parent IN (26,29,30) AND (modResource.context_key IN ('web') OR EXISTS(SELECT 1 FROM `modx_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 10
I’m using MODx Revolution 2.0.8-pl (traditional) with getPage 1.0.0 pl and getResources 1.3.0 pl.
I’m running off my local machine on OSX, using MAMP PRO. PHP version 5.2.11, MySQL version 5.1.37.
Am I doing something stupid or have I run into a bug here?