I think I’ve a quite challenging task (for me) to migrate nodes to a different nodetype.
The customer started to use the default page for a new “article” section in the past. Time went by and now there are hundreds of articles which don’t have a specific “article” nodetype instead they are all of type default page. Therefore it is hard to do any automatization as you can’t simply search for a nodetype.
This default page / article has in its mainCollection e.g. an article image and several text elements and so on.
The new article nodetype should have some properties like “article-image” and also a mainCollection.
So while the migration I want to:
- Figure out which node is an article (e.g. by its child nodes in the main collection)
- Change the node to the new article node
- Add the article image from the main collection to the articleImage property of the new nodetype
- Delete the image node from the main collection
Any tipps what would be a good way to achieve this?