Forum Discussion
Bernd Verhofstadt
Oct 16, 2018Iron Contributor
Best practice for provisioning Content Types on Modern Sites
Hi, I'm looking for the best way to work with content types on modern sites. Currently the Content Type Hub (cth) is used for our classic sites and can't be deactivated. We started a new project t...
Francis Laurin
Mar 27, 2019Brass Contributor
How did you manage it out, finally? I have the exact same question.
I was told that you could simply provision the same Content Type name and ID from a site script (and add it to a library at the same time) and the Content Type Hub would hook up after and add the missing columns. I just tested it and it did not work at all. Error logs state that the CT already exists....
Bernd Verhofstadt
Mar 28, 2019Iron Contributor
Francis Laurin we are currently using the pnp provisioning engine.
We created new content types and reused the fields from the content type hub.
It is easy to export fields from existing sites with pnp... After you added everything to your template you can start provisioning. The content type hub will add all the other (unused) fields.
Cheers
Bernd