CMSImport question
# help-with-umbraco
m
Just wondering how it works to migrate content from an U7 site to U10 with CMSImport Pro. We only want to import one particular Document type. I don't see that it can export data so can it import directly from the old SQL server - in which case can it filter on the relevant document type? - or do I need to export the content somehow into Excel for example? Thanks!
a
@MobyDog Do you persé need to use CMSImport Pro? Because i think https://github.com/Jumoo/uSyncMigrations will also suit your needs
m
Actually, it might, thanks!
Ok I gave this a go on a test site with the uSync Migration - basically exporting in U7, then only copying the relevant document types, templates and Content over to U10 site, migrating and importing. It seemed to work to an extent. However it does not seem that you can map the content, for example if on v7 there is a News Article Style A, say, and on U10 there is News Article, Style B, you can't map from one to the other? You basically end up creating a News Article Style A on U10 and then populating that? So from what I can see I’d have to redo my news system Views/View Components etc once the news articles are all in. I don’t think this would be too onerous as the code is already there and it would just mean copying and pasting and creating new templates etc, hopefully However just wondering if anyone knows would CMSImport be any easier for mapping content to existing document types - just want to be able to pass the word up the line. Thanks
c
Have you thought of screenscraping? Something I'm seriously thinking of doing for one site in particular that has hundreds of articles that use LeBlender a lot. At least you can map whatever you want then.
m
Do you mean that article A and article B share the same doctype properties but rendered with a different template (that would be the usual way to style differently, though you might have two separate doctypes with differing properties)? If so then you could either manipulate the template in the config files generated by usyncMigrations to change the template prior to import (powershell script?).. or once imported write a script to iterate though the news articles and update the template from style A to style B.