I am porting a site over from Evolution and am trying to work on a snippet that pulls the contents of a parent. In Evolution I could use:
$modx->getActiveChildren($resourceparent,’createdon’, ’DESC’, $fields=’content’);
Is there an equivalent to this on Revolution?
$childArray = $modx->getChildIds($parentId, $depth')
$depth defaults to 10.
-
☆ A M B ☆
- 427 Posts
I have been pouring over the api for revolution to solve this very issue in a rewrite of ListIndexer. In many places when something is deprecated there is a reference to the new entity, not for this one. Thank you Bob.
This will save me some time.