getResources is indeed compatible with MODX 2.3.3
Which class key is your parent/container using? If you're using extras like Collections, Articles or GridClassKey, you need to add &showHidden=`1` to your call.
[ed. note: treigh last edited this post 11 years, 7 months ago.]
A MODx Fanatic
I'm not using any class key. Just trying to get the longtitle of a child resource to appear on the page for now.
At the moment, I have one parent, one child. Both are published. The child is hidden from menus.
And just now... I may have found the problem. The sort is by menu index. If the child is hidden from menus, then there's sort of no menu index to sort maybe?
Nope! Deleted the &sort line and still nothing loads. At any rate, it would not be uncommon for children to be hidden from menus, yet one might still want to sort by menu index.
The tutorial said depth should be &depth=`0`. The doc show that the default is &depth=`10`. Neither setting results in content being loaded.
I added in &showhidden=`1`. Still no content loading.
No errors in the MODx error log either. I have that text paragraph in the chunk, and since not even that is loading, I'm guessing that getResource cannot even find the chunk to load it.
Yahoo!
changed the suggested &showhidden=`1` to &showHidden=`1` and at least my paragraph now shows up. However, the tv longtitle is not loading.
Getting warmer though:)
Even warmer!
the "tv." as indicated in the MODx docs is not needed in front of the placeholder name.
Success! Got the longtitle and my paragraph to load.