Dec 18 2018 02:26 PM
Hello, I would like to know if it is possible to provision an enterprise content type on SharePoint online without using the Content Type Syndication Hub. Just to be clear, by enterprise content type I mean a content type that can be applied to multiple modern site collections. I have used the content type syndication hub in SharePoint 2010 extensively and would like to avoid that pain. I would prefer just to deploy a single content type in multiple site collections using site designs or the pnp provisioning engine. Any help is appreciated.
Dec 18 2018 03:32 PM
Dec 18 2018 03:42 PM
Thuyavan, that article does not address deploying a content type across multiple site collections.
Dec 18 2018 04:59 PM
Dec 18 2018 11:07 PM
Dec 20 2018 09:50 AM
Solution1) You could provision the content type in code via CSOM and push it to multiple sites
2) You could use site designs and add new content types automatically like below
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
{
"$schema": "schema.json",
"actions": [
{
"verb": "setRegionalSettings",
"locale": 1033
},
{
"verb": "createContentType",
"name": "Test Content Type",
"parentName": "Document",
"parentId": "0x0101",
"id": "{1B1AF0B2-14B0-41C2-8273-DBD2C3F0DB8E}",
"subactions": []
}
],
"bindata": {},
"version": 1
}
Dec 20 2018 09:50 AM
Solution1) You could provision the content type in code via CSOM and push it to multiple sites
2) You could use site designs and add new content types automatically like below
https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-overview
{
"$schema": "schema.json",
"actions": [
{
"verb": "setRegionalSettings",
"locale": 1033
},
{
"verb": "createContentType",
"name": "Test Content Type",
"parentName": "Document",
"parentId": "0x0101",
"id": "{1B1AF0B2-14B0-41C2-8273-DBD2C3F0DB8E}",
"subactions": []
}
],
"bindata": {},
"version": 1
}