Hi Jaroslav
thanks again, this helps a lot.
So, I did:
NodeUtil.getNodes(parent, ItemType.PAGE.toString())
it says that ItemType is deprecated. Is there a way to do this without using a
deprecated method?
Here's to code if anyone is interested or maybe knows a smarter way:
public Iterator<Node> getChildren(String Id) throws ItemNotFoundException,
LoginException, RepositoryException {
final Node parent =
MgnlContext.getJCRSession("website").getNodeByIdentifier(Id);
return NodeUtil.getNodes(parent, ItemType.PAGE.toString()).iterator();
}
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=c93cfb28-1d6b-4447-9533-488592f743a9
----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------