Create and Use Site Content Type in Content Type Hub

Introduction

This article will help you to create, publish, republish, unpublish, delete, and use the site content type in the SharePoint online list.

Content-Type Hub

According to MSDN, is a centralized location where you can manage and publish your content types,

  • So that it can be available in all site collections.
  • Now web applications can subscribe to this hub and pull down the published content types from the hub.
  • Even receives any updates on the published content types

In SharePoint Online, contentType hub browse by using https://teanant.name.com/sites/contenttypehub/

Create and publish Site Content type in ContentType hub

Step 1. Click on the Create button to create a new site content type.

Create New site

Step 2. Please fill the form with values as per the following and click the ok button.

Fill the form

Step 3. Once the site content type is created, we can create or select more columns in the new site content type by clicking on Add from the new site column and Add from existing site columns respectively.

OR

We can skip this step and add the column later by browsing https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types

Site settings

I have the created following column by clicking on Add from the new site column.

Site column

Step 4. After creating or adding respective columns to the site content type, we have to publish the site content type so that it can be available to consumed site collections.

To publish the site content type, click on the highlighted link.

Highlighted link

Step 5. For the first time, by default, the publish option will be selected, so simply click on the OK button

Publish option

Note. It will take a couple of hours to publish the site content type on consumed site collections.

Use Site Content Type in a list

Step 1. To use the newly created site content type into the list navigate to the consumed site collection and click on Add an app->Custom list, name it as EmployeeCT.

Custom list

Step 2. To add a content type to the list, we have to activate the allowed content type management.

To active the content type management, click on list settings -> Advanced Settings -> Allow management of content types

Advanced Settings

Step 3. Now click on the highlighted link

Content Type Hub

Step 4. Now select the appropriate site content type (EmployeeCT in my case), click on add, and then OK.

EmployeeCT

Step 5. Now all the site columns created earlier in the site content type will be available in your consumed site collection list.

Site collection list

Republish Site Content type

Republishing the site content type is required in the following scenarios before changes are available:

  • When we update the site content type by adding a new column in it.
  • When we change the type of column for the existing column.

To republish the site content type browse: https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types

Select the appropriate site content type (EmployeeCT in my case) and click on Manage publishing for this content type, select the highlighted option and click the button.

Republish Site

Note. It will take a couple of hours to reflect the changes in the consumed site collection.

Unpublish Site Content type

To make the site content type not available in any site collections, we unpublished the site content type.

To unpublish the site content type browse: https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types

Select the appropriate site content type(EmployeeCT in my case) and click on Manage publishing for this content type select the highlighted option and click the ok button.

Unpublish Site

Delete the site content type

To delete the site content type browse: https://teanant.name.com/sites/contenttypehub/ -> site settings->Site Content types

Select the appropriate site content type(EmployeeCT in my case) and click on Delete this site content type

Delete the site

Confirm the delete operation by selecting the OK option on the pop-up window.

Confirm the delete operation