Design Manager Issue with Content Type SharePoint 2013 Office 365
Check out Best Alternative to InfoPath -> Try Now
Hi Everyone, Today I will be sharing some issues faced by design manager SharePoint 2013.
SharePoint 2013 has a new feature Design manager which allows us to move the master page, page layouts from one site collection to another site collection.
We are using PowerShell script with CSOM to create content type, pages, and many more activities.
We had an issue while creating a content type with the script as it says duplicate content type or I can also say the content type is already available.
This was a fresh site and we just moved the master pages, page layouts using design package but we were surprised by getting this error.
But after spending sometime against the error, finally came to the reason behind the issue :).
So when we move the master page, page layouts, CSS etc using design package it also includes the content type attached to the page layouts. Due to which we were not able to create the same content type again using our script.
Now we are not using any code to create the content type. We are using code to add the content type to pages library and design package will take care of creating a content type for respective page layout.
If you want to delete the Content type and it says “It’s being used in the site”, you can deactivate the design package wsp file from the solution gallery. This will remove the content type from your site as well.
SharePoint Online FREE Training
JOIN a FREE SharePoint Video Course (3 Part Video Series)