Hi there,
Im trying to get the children of a page using:
pageService.findBySlug(‘slug-name’).getChildren();
The result is the exact same object if I use the same line without the “.getChildren()”
Can you help out
Thanks
xerrano
Hi there,
Im trying to get the children of a page using:
pageService.findBySlug(‘slug-name’).getChildren();
The result is the exact same object if I use the same line without the “.getChildren()”
Can you help out
Thanks
xerrano
This is the code that ContentBox uses.
var pageResults = pageService.search(search=rc.searchPages,
offset=( rc.showAll ? 0 : prc.paging.startRow-1 ),
max=( rc.showAll ? 0 : prc.cbSettings.cb_paging_maxrows ),
isPublished=rc.fStatus,
category=rc.fCategories,
author=rc.fAuthors,
parent=( !isNull( rc.parent ) ? rc.parent : javaCast(“null”,"") ));