After some investigation, we found the error in our code:
Content subnode = node.createContent(value,new ItemType("status");
"status" is the ItemType create in the Data module.
Benoît
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Benoit Segaert
Sent: mardi 10 novembre 2009 9:15
To: Magnolia User-List
Subject: [magnolia-user] Import in Data Module
I am currently working on the import of data from external system (Sharepoint).
I decide to use Data Module for list of items.
I developed the import into the Data module (into a specific Type of content)
but my data is not visible in the admin interface.
Here is the code I wrote to generate a node:
Content subnode =
node.createContent(value,DataConsts.MODULE_DATA_CONTENT_NODE_TYPE);
node.save();
subnode.createNodeData("name", value);
subnode.save();
"node" is the parent folder in the data repository.
Can you help me?
Benoit
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------