Hi,
thanks for pointing this out. I think the Java example in the groovy doc is
wrong as 'abstract' is not a JCRV node rather a property, hence the
PathNotFoundException.
The example, which I will amend soon in our documentation website, should read
something like this
[code]
… imports omitted
public class Test {
public static void main(String[] args) {
HierarchyManager hm = MgnlContext.getHierarchyManager("website");
try {
Content node = hm.getContent("/demo-project/about/history");
String value = NodeDataUtil.getString(node, "abstract");
System.out.println(value);
} catch (RepositoryException e) {
e.printStackTrace();
}
}
}
[/code]
HTH,
Federico
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=6b791038-b0fb-4544-88b4-c0fff204d74e
----------------------------------------------------------------
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]>
----------------------------------------------------------------