I wrote a script to export different datatypes for translation. They are now in separate csv files and being edited. I now tried to reimport the data and overwrite the text content of the old nodes, but CMSImport always creates new entries. I tried using the ID and the GUID of the node, but couldnĀ“t get an update to work.
Is it possible to do this kind of export / import or is there something I am missing?
If you need to update nodes, you need to use the Update option in CMSImport (Pro only). This will add a relation in the cmsimportrelation table between the imported item and the imported node by cmsimport.
Then next time it will check the relation and when found it will be updated instead of inserted.
If you need this to work with your file you need to manually add records in cmsimportrelation table. Datakey format is [Provide alias][primary key name][primary key value]
Update exported elements
I wrote a script to export different datatypes for translation. They are now in separate csv files and being edited. I now tried to reimport the data and overwrite the text content of the old nodes, but CMSImport always creates new entries. I tried using the ID and the GUID of the node, but couldnĀ“t get an update to work. Is it possible to do this kind of export / import or is there something I am missing?
Hi Gerhard,
If you need to update nodes, you need to use the Update option in CMSImport (Pro only). This will add a relation in the cmsimportrelation table between the imported item and the imported node by cmsimport.
Then next time it will check the relation and when found it will be updated instead of inserted.
If you need this to work with your file you need to manually add records in cmsimportrelation table. Datakey format is [Provide alias][primary key name][primary key value]
Hope this helps,
Richard
is working on a reply...