Hi,
thanks for your reply. I tried that by using the following code:
[code]final HierarchyManager hierarchyManager =
MgnlContext.getSystemContext().getHierarchyManager("data");
Content content =
ContentUtil.getOrCreateContent(hierarchyManager.getRoot(),"test", new
ItemType("mgnl:area"), true);[/code]
But unfortunately it's not working with the "data" workspace. I tried using
"website" workspace and it worked. Do you know what I'm missing here?
I also tried several node types (found
[url=http://documentation.magnolia-cms.com/reference/node-types.html]here[/url]):
nt:base
- no error
- no success
nt:unstructured
- no error
- no success
nt:hierarchyNode
- no error
- no success
mgnl:folder
- no error
- no success
nt:file
- no error
- no success
mgnl:resource
- no error
- no success
mgnl:metadata
- no error
- no success
mgnl:content
- no error
- no success
mgnl:contentNode
- no error
- no success
mgnl:page
- no error
- no success
mgnl:area
- no error
- no success
But none of these are working...
Cheers
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=a33713a1-d256-4583-8982-45811ba320cc
----------------------------------------------------------------
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]>
----------------------------------------------------------------