Configure Content Type Hub in SharePoint Online

What is Content Type Hub in SharePoint Online?
In SharePoint, The content types you create in one site collection can be used only within that site collection. To provide the ability to re-use them across different site collections in the tenant and standardize, we've to use content type hub. The Content Type Hub is a centralized location to manage content types in SharePoint Online. A content type hub is a special site collection configured to provide content types to other site collections. Without content type hub, You'll end up re-creating same content type and site columns again and again on all of the site collections.

How to Create a Content Type Hub in SharePoint Online?
In SharePoint On-premises, we create a site collection, activate "Content Type Syndication Hub" feature and configure it in MMS service application to create a content type hub (How to Create Content Type Hub in SharePoint?). However, In SharePoint Online, Content type hub site collection is automatically provisioned when you create the tenant (But doesn't appear in site collections list of SharePoint Admin Center!) at https://your-domain.sharepoint.com/sites/ContentTypeHub

If you try to create a content type hub site (instead of using pre-built content type hub site) and publish a content type from it, you would get an error!

Get Content Type Hub URL in SharePoint Online:
How to determine the URL of the content type hub in SharePoint Online? Well, 
  • Go to any of your SharePoint Online site collection >> Site Settings
  • Click on "Content Type Publishing" link under "Site Collection Administration"
content type hub url in sharepoint online
This gets you the content type hub URL in SharePoint Online.

Publish a Content Type in SharePoint Online Content Type Hub
A content type published in content type hub can be used in any of the site collections under the tenant.  The typical steps that you would have to perform to publish content types are as follows:
  1. Create all content types that you want to reuse across site collections, in the content type hub site.
  2. Publish the content types at the content type hub. The published content types will become available in the consuming site collections after the content type hub timer jobs run.

How to Create and Publish a Content Type in the Content Type Hub?
The creation and publishing of content types must be done from the content type hub.
  • Go to the Content Type Hub Site  >> Click on Site Settings >> Site Content Types >> Click on "Create" link, Name your content type, add required columns, template, etc.
  • Publish the Content Type: In the content type settings page, Click on "Manage Publishing For This Content Type",
  • In the Content Type Publishing page, choose "Publish" option and hit "OK" button to publish the content type in SharePoint Online.
    publish content type sharepoint online
Content types must be published on an individual basis. If you make changes to a content type in the content type hub, you will need to republish the content type for your changes to propagate. Similarly, if you no longer want your content type to be available, you can unpublish the content type. However, unpublishing will not remove the content type  from a subscriber site if that content type is already in use.

Subscribe to Content Type Hub SharePoint Online :
By default, all site collections in SharePoint Online tenant are subscribed to the content type hub. Once you published the content type in Content Type hub, You can go to the Site Collection where you want to use the new Content Type,
  • Click on Site Settings >> Click on "Content Type Publishing" under Site Collection Administration,
  • Enable the checkbox to "Refresh all published content types on next update". 
  • Click on OK.
This updates all published Content Types the next time the Content Type Subscriber timer job runs (can take up to Four Hours in my experience!).

When a content type is published from the hub to a site collection, the published copy of the content type is considered to be "sealed" meaning that it cannot be modified. All modifications to this content type must occur within the context of the content type hub.
Configure Content Type Hub in SharePoint Online Configure Content Type Hub in SharePoint Online Reviewed by Salaudeen Rajack on January 24, 2017 Rating: 5

No comments:

Please Login and comment to get your questions answered!

Powered by Blogger.