Comments (4)
Hi @BenJ74 ,
The default behavior of page transformation is to only transform to 1st party (so OOB) web parts and there's no modern script editor or content editor web part. This, however, does not mean that you can't use a 3rd party (custom) alternative. Follow below steps to enable the conversion of content editor and script editor web parts:
- Install the open source script editor web part (https://github.com/SharePoint/sp-dev-fx-webparts/tree/master/samples/react-script-editor) to your tenant
- The
ConvertTo-ClientSidePage
cmdlet has a built-in default webpartmapping.xml file, in order to use the custom script editor web part deployed in the previous step you need to provide an updated mapping file:- You can grab a default version from https://github.com/SharePoint/sp-dev-modernization/blob/master/Tools/SharePoint.Modernization/SharePointPnP.Modernization.Framework/Nuget/webpartmapping.xml
- Then uncomment the mapping for script editor, content editor and html form web part (lines 193, 204, 521). The default webpartmapping already contains the needed mapping for using the custom script editor, but since that web part is not installed by default the mapping is commented out
- In the final step you now use the
-WebpartMapping
parameter to specify the location of your "custom" mapping file
Above steps should get you unblocked, if not then please let me know.
from modernization.
Hi @BenJ74,
Did the above help?
from modernization.
Hi @jansenbe ,
Sorry for the delay.
Thanks for your help, it works!
from modernization.
Thanks @BenJ74. Will close this issue now
from modernization.
Related Issues (20)
- [BUG] HOT 2
- [BUG] HOT 1
- LVWP for certain list templates is not converted HOT 1
- Not Supported??? HOT 1
- Errors when running SharePoint Modernization Tool HOT 2
- ConvertTo-PnPClientSidePage : Cannot bind positional parameters because no names were given.
- Permission required to Connect site to Group
- [BUG] _'0x0D' is invalid within a JSON string. The string should be correctly escaped. HOT 1
- [BUG] Content editor web part losing table format and images inside a table on editing the modernized page
- [BUG] - scanner tool hang and no progress
- Can not convert a publishing page to modern page using powershell HOT 1
- [BUG] - Getting Access Denied when running 2013 to Online Publishing Transformation
- Wiki pages are not getting converted
- Index was outside of the bounds of the array HOT 1
- [BUG] : ConvertTo-PnPPage: Could not find file 'PnP.Framework.resources' HOT 1
- Error when converting onPrem publishing pages to SPO: The given key 'Content' was not present in the dictionary. HOT 1
- [BUG] Embedded images referring to _layouts image files don't get correct height and width values
- [BUG]
- Error during modernization of Wiki page - 't' is invalid after a value. Expected either ',', '}', or ']'
- Mapping of HTML Form webpart containing iframe vedio is not migrating to modern site
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from modernization.