// create path for this node under "data". It works, path is created and
// visible in JCR Browser
// basePathis "/folder1/folder2"
final Content baseNode = createPath(basePath, hm);
// save this (persistently apply changes to repo)
baseNode.save();
// I have a data type called "myType".
// So I want to create a new Content Type under "basePath".
Content newNode = baseNode.createContent("test", "myType");
// set name
newNode.createNodeData("name").setValue("test");
// save children
newNode.save();
at this point I have an exception:
"/folder1/folder2/test: cannot save a new item."
Any Idea?
Thanks..
M.
----------------------------------------------------------------
for list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
----------------------------------------------------------------
Hi All, can you help me with this behaviour? No idea why it fails to
create a new content node...
- Re: [magnolia-user] New Content Node fails... SeanMcTex
- Re: [magnolia-user] New Content Node fails... Matteo Pelucco
- [magnolia-user] New Content Node fails... Matteo Pelucco
- Re: [magnolia-user] New Content Node fails... Grégory Joseph
- Re: [magnolia-user] New Content Node fails... Matteo Pelucco
- Re: [magnolia-user] New Content Node fails... Ralf Hirning
- Re: [magnolia-user] New Content Node fails... Matteo Pelucco
