Classic Pages to Modern Pages migration

%3CLINGO-SUB%20id%3D%22lingo-sub-277422%22%20slang%3D%22en-US%22%3EClassic%20Pages%20to%20Modern%20Pages%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277422%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20lot%20of%20classic%20wiki%20pages%20in%20the%20current%20intranet%20site.%20How%20to%20migrate%20these%20pages%20to%20the%20Modern%20Site%3F%20We%20have%20Sharegate%20tool%20but%20that%20doesn't%20help%20in%20migrating%20the%20classic%20pages.%20I%20have%20activated%20the%20publishing%20features%20in%20a%20Modern%20Site%20(for%20testing)%2C%20which%20added%20wiki%20page%20layout%20to%20the%20Site%20Pages%20library.%20Used%20some%20powershell%20scripts%20to%20read%20the%20content%20from%20the%20classic%20wiki%20pages%20and%20create%20new%20wiki%20pages%20in%20the%20Modern%20Site.%20The%20wiki%20page%20in%20the%20modern%20site%20is%20created%20fine%20with%20this%20method.%20Is%20this%20approach%20correct%3F%26nbsp%3BI%20have%20seen%20few%20articles%20that%20Activating%20Publishing%20features%20in%20modern%20sites%20is%20not%20supported.%20Do%20we%20need%20to%20use%20only%20Home%20and%20Article%20page%20layouts%20in%20the%20modern%20sites%3F%20If%20that%20is%20the%20case%20is%20there%20any%20method%20to%20migrate%20the%20old%20wiki%20pages%20to%20the%20modern%20pages%3F%20Thank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277466%22%20slang%3D%22en-US%22%3ERe%3A%20Classic%20Pages%20to%20Modern%20Pages%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277466%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20code%20is%20very%20helpful%20to%20transform%20the%20classic%20pages%20to%20modern%20pages.%20so%20convert%20the%20classic%20pages%20to%20modern%20pages%20in%20the%20classic%20site%20itself%20and%20them%20migrate%20to%20modern%20site...Is%20that%20correct%3F%20Thanks%20once%20again!%3C%2FP%3E%3CP%3EOne%20more%20Q%3A%20Is%20it%20true%20that%20publishing%20features%20should%20not%20be%20activated%20in%20Modern%20Sites%20even%20though%20technically%20possible%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277458%22%20slang%3D%22en-US%22%3ERe%3A%20Classic%20Pages%20to%20Modern%20Pages%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277458%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%20very%20much%20for%20the%20link.%20Very%20useful%20%3A).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-277436%22%20slang%3D%22en-US%22%3ERe%3A%20Classic%20Pages%20to%20Modern%20Pages%20migration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-277436%22%20slang%3D%22en-US%22%3EIf%20you%20want%20to%20migrate%20your%20Wiki%20Pages%20to%20modern%20pages%20in%20SPO%2C%20you%20will%20need%3A%3CBR%20%2F%3E1)%20Build%20your%20custom%20migration%20solution%20(PowerShell%20%2F%20C%23%20Code)%3CBR%20%2F%3E2)%20Use%20the%20Page%20Transformation%20PnP%20sample%20as%20base%20to%20build%20your%20custom%20migration%20solution%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Ftransform%2Fmodernize-userinterface-site-pages%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Ftransform%2Fmodernize-userinterface-site-pages%3C%2FA%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

We have lot of classic wiki pages in the current intranet site. How to migrate these pages to the Modern Site? We have Sharegate tool but that doesn't help in migrating the classic pages. I have activated the publishing features in a Modern Site (for testing), which added wiki page layout to the Site Pages library. Used some powershell scripts to read the content from the classic wiki pages and create new wiki pages in the Modern Site. The wiki page in the modern site is created fine with this method. Is this approach correct? I have seen few articles that Activating Publishing features in modern sites is not supported. Do we need to use only Home and Article page layouts in the modern sites? If that is the case is there any method to migrate the old wiki pages to the modern pages? Thank you!

3 Replies
Highlighted
If you want to migrate your Wiki Pages to modern pages in SPO, you will need:
1) Build your custom migration solution (PowerShell / C# Code)
2) Use the Page Transformation PnP sample as base to build your custom migration solution: https://docs.microsoft.com/en-us/sharepoint/dev/transform/modernize-userinterface-site-pages
Highlighted

Thank you very much for the link. Very useful :).

Highlighted

The code is very helpful to transform the classic pages to modern pages. so convert the classic pages to modern pages in the classic site itself and them migrate to modern site...Is that correct? Thanks once again!

One more Q: Is it true that publishing features should not be activated in Modern Sites even though technically possible?