SharePoint Pals
 | Sign In
How to Use Content Type Hub in SharePoint 2013
by Sathish Nadarajan 25 May 2014
Author
SharePoint MVP
Visits   
Today  :   20     Total  :    30714

Content Type Hub – A wonderful concept which Microsoft introduced on the era of SharePoint 2010 itself. Let us see what it is, why we require that, and how to use that on this article.

What it is?

A Centralized site collection on which we will create all our site columns and Content Types and through the Managed Metadata Service Application, these Content Types can be used across our SPFarm. i.e., other site collections can use these content types.

Why we require this?

When we are dealing with more than one Site Collections, i.e., Preview, staging and actual site collections, we may require to create same content type on all of the a above mentioned site collections. To avoid that, we can create the content type on the Content Type Hub Site collection and we can use those content types across our required site collections.

How to use that?

Let us see, how to use the content type hub in sharepoint 2013.

Let us see that with step by step procedures.

1. Let us create our SiteCollection for the Content Type Hub.

image

I have chosen the Product Catalog Template.

2. The site will look like below.

image

3. Go to Site Collection Feature.

image

4. Now the site collection can be used as a Content Type Hub.

image

5. Let us create some Site Columns and Content Types on this Site Collection.

6. The Site Columns created are as follows.

image

7. Now, Create the Content Type using these Site Columns.

image

8. Then Execute the following scripts.

 Add-PSSnapin "Microsoft.SharePoint.PowerShell"
 
 $mms = Get-SPServiceApplication -Name "Managed Metadata Service" 
 
 Set-SPMetadataServiceApplication -Identity $mms -HubUri "http://sathishserver:3000/sites/SathishContentTypeHubSite/"
 
 Write-Host "Done" -ForegroundColor Green 
 
 $mmsp = Get-SPServiceApplicationProxy | ? {$_.DisplayName -eq "Managed Metadata Service"} 
 
 Set-SPMetadataServiceApplicationProxy -Identity $mmsp -ContentTypeSyndicationEnabled -ContentTypePushdownEnabled -Confirm:$false 
 
 Write-Host "Done" -ForegroundColor Green  
 

9. Now coming back to the Content Type Hub Site Collection and Go to the Content Type which we just created.

image

10. Select the “Manage Publishing For this Content Type”

11. Publish the Content Type.

image

12. Now, the Content Type has been published.

13. To Confirm that, if we again go to the same page, the Last Successful published date can be seen.

image

14. Now, come to the Site Collection on which we require these site columns.

15. I am using my publishing site collection.

image

16. Go to Site Settings and Select the “Content Type Publishing”

image

17. You can see the published content types here.

image

18. If you are not able to see that immediately, there is a timer job which needs to run. This timer is configured as Hourly basis by default. We can execute this time manually also. The timer is “Content Type Subscriber”.

image

19. Now, when we are going to the Content Types of the Publishing Site, we will be able to see our Content Type, which has been created on the ContentTypeHub Site Collection.

Note:

There are no way, we can set the HubRUI of the ManagedMetada Service through the UI. Even for updating also, we need to follow the powershell only.

Happy Coding.

Sathish Nadarajan.

blog comments powered by Disqus

SharePoint Pals

Pals
SharePoint Pals, a community portal for SharePoint developers, Administrators and End Users. Let's join hands and share the point together.
Read this on mobile

Training

Angular Js Training In Chennai
Advanced Angular Js training with real world developer scenarios
Angular Js, Web Api and Ionic for .Net Developers
All in one client side application development for .Net developers
Angular Js For SharePoint Developers
Get ready for the future. Its no more just C#

Get Connected

SharePoint Resources

SharePoint 2013 and 2010 Web Parts
Free Web Parts with Source Code for SharePoint Community




SharePoint 2013 Books and Tutorials
Collection of free SharePoint 2013 books and tutorials (eBooks, pdfs)

Supported By

Contribute your article and be eligible for a one month Free Subscription for Plural Sight. The Author of the most popular New Article (published in the previous month) will be awarded with a Free One month Plural Sight Subscription. Article can be sent to articles@sharepointpals.com in a word document.

Related Resources

Recent Tweets

Twitter January 15, 00:25
How To Enable Target Value And Actual Value In #D3 Gauge Chart https://t.co/VxSi4QnNrC

Twitter January 15, 00:24
How To Open #SharePoint List Hyperlink Column In Modal #Popup Window https://t.co/EQ7HkoZDkX

Twitter January 15, 00:24
Quick Introduction To #Asp.NetCore And It’s Features https://t.co/zAXObHCFpH

Twitter January 15, 00:22
How To Configure #PerformancePoint Services To Use Secure Store In #SharePoint 2013 https://t.co/LEwnUoI7EY

Twitter January 15, 00:21
How To Block Or Disable #Office365 Services https://t.co/Yvp2VPFIRP

Follow us @SharePointPals
Note: For Customization and Configuration, CheckOutRecent Tweets Documentation