Posted on 26/02/2013 12:35:20
Hi Morten,
I can try to answer the Import/export question for you.
As I understand your question, you have an itemtype defined, and you have created an item of that type in danish. You wish to export this item, have it translated to english, and import the result as a new item in the database, resulting in two items, one in english and one in danish.
When a new item is created as a page or a pragraph, a row is added to both the itemType_*** table, and to the page/paragraph table.
If you are accessing the items programatically, the page/paragraph row is not needed.
This means that in order to import items, you have to ad rows to two tables, both the itemType table and the page/paragraph table.
in the Page table, you must add values to (at least) the following columns:
PageParentPageID,PageActive,PageMenuText,PageItemType,PageItemId.
And similarly, in the Paragraph table, you must add values to (at least) the following columns:
ParagraphPageID,ParagraphItemId, ParagraphHeader, ParagraphItemType
I expect that we'll add an itemProvider to the Data Integration module before too long, since items appear to be the new black :-)
However, if you need to do the import/export right now, you will have to handle the page/paragraph creation manually, either by adding it to the input data, or by creating a custom provider to handle it for you.
/Jonas