Add to My Yahoo! | Google Reader or Homepage | Add to Windows Live | Add to Windows Live Alerts

Wictor Wilén

Microsoft Certified Master (MCM) - SharePoint 2010 | Microsoft Most Valuable Professional (MVP) - SharePoint Server MVP | Author

Plan your SharePoint 2010 Content Type Hub carefully

Posted at 2010-04-23 04:55 by Wictor Wilén in SharePoint 2010 with 30 comments.

Currently setting up a new environment on SharePoint 2010 (which was made available for download yesterday if anyone missed that :-). One of the new features of SharePoint 2010 is to set up a Content Type Hub (which is a part of the Metadata Service Application), which is a hub for all Content Types that other Site Collections can subscribe to. That is you only need to manage your content types in one location.

Setting up the Content Type Hub is not that difficult but you must make it very careful to avoid a lot of work and troubleshooting. Here is a short tutorial with a few tips and tricks to make it easy for you to get started.

Determine location of Content Type Hub

First of all you need to decide in which Site Collection to place your Content Type Hub; in the root site collection or a specific one. I think using a specific Site Collection that only acts as a Content Type Hub is the best way, there are no best practice as of now. So I create a new Site Collection, at for instance http://server/sites/CTH/. The top-level site of this site collection should be for instance a Team Site. You cannot use Blank Site by default, which would have been the best option IMHO, since that site does not have the Taxonomy feature stapled upon it (check the TaxonomyFeatureStapler feature for which site templates that can be used).

Configure Managed Metadata Service Application

Next you need to create your Managed Metadata Service Application or configure the existing one, Central Administration > Application Management > Manage Service Applications. Select the Managed Metadata service application and click Properties if you already have created it.

Managed Metadata Service

In the bottom of the dialog window when you are creating the service application or when you are editing the properties is a section to fill in the Content Type Hub. In this text box fill in the URL of the Content Type Hub. It is essential that you have decided where your Content Type Hub will reside, since once this is set you cannot change it. The only way to change it is to rebuild the whole managed metadata service application! Also make sure that you enter the URL correctly. I did copy and paste the URL once and got the /default.aspx in the URL which funked the whole service up. Make sure that you only use the URL to the Site Collection of the hub.

Service Application properties

Now you have to set up so that other Site Collections can consume the content types from the hub. This is done by selecting the connection for the managed metadata service application and clicking properties.

Service Connection

A new dialog window opens and there you need to click the Consumes content types from the Content Type Gallery at nnnn.

Serivce Connections gallery

Now you are free to syndicate your Content Types from the Hub.

Publish Content Types

To publish a Content Type from the hub you need to go to Site Settings > Content Types and select the content type that you would like to publish. Then select Manage publishing for this content type. This takes you to a page from where you can Publish, Unpublish or Republish the content type.

Publish it!

Once the content type is published it can take up to an hour for the subscribing Site Collections to get it. This is controlled by the Content Type Subscriber job that is scheduled to run once an hour. To speed up your publishing just go to Central Administration > Monitoring > Review Job Definitions > Content Type Subscriber and click Run now and you content type is very soon available for use.

Published Content Type status

You can check the status of the content type publishing in your destination site collections by selecting Site Settings > Content Type Publishing. From here you can force a refresh of all subscribed content types, see which ones that are subscribed and finally check the publishing error log. This error log is very useful for detecting errors during the publishing. For instance if you use any features such as ratings, metadata, document ids in your content type hub and your destination site collection does not have those features available this will be reported here.

 

Have a nice weekend...I know what I will be doing...

Comments and trackbacks

#  CT hubs and migration by Anders Rask
Screenshot from websnpr CT hubs will prove interesting in upgrade scenarios where u want to convert your dispersed CT's to use a single CT as defined in hub
#  Social comments and analytics for this post by Trackback
Screenshot from websnpr This post was mentioned on Twitter by wictor: Just blogged: Plan your SharePoint 2010 Content Type Hub carefully http://bit.ly/9DVur1
#  creating CTs by Brian Bedard
Screenshot from websnpr I assume you can create CTs like you did in 2007, through element manifests? So I guess you activate the feature to deliver the CT and then you can publish to other site collections. What about external CTs. Do they work the same way?
#  @Brian by Wictor
Screenshot from websnpr Yes you can still (and should) deploy CT's using features. External Content Types does not work in the same way. They are already centrally coordinated by the BDC service app, so there is no need for any Ext CT Hubs
#  New Managed Service Application by Clyde
Screenshot from websnpr When i follow your steps i only have one Managed Metadata Service with no option to enter a content hub. My guess is that i need to create a new service... question i have is which DB do you use for the service?
#  @Clyde by Wictor
Screenshot from websnpr If the Content Type Hub text box is disabled then you are right, you have to create a new MMS. The MMS uses its own DB which will be created when you set up the service
#  Changed the Content Hub Location by Brian Edwards
Screenshot from websnpr Great article! You can change the content hub location afterwards if needed thanks to PowerShell: Set-SPMetadataServiceApplication [MetadataServiceName] -HubUri [NewHubURL] e.g. Set-SPMetadataServiceApplication "" -HubUri http://intranet/site/newhub Just be carefull you really want to do this!
#  Content Types Will Not Publish by Chris Quick
Screenshot from websnpr In my environment, no matter what I do I cannot get any content types to publish. They show as published and I have sites consuming, but updates and changes never get applied. There are no visible errors and all web based errors logs are empty for all sites involved. Also, I cannot publish to existing site collections and new site collections pick up the content type, but will never change. They even show as subscribers to the main content types. What should I look for in logs to try to troubleshoot?
#  Changes are not published by Mel
Screenshot from websnpr I am experiencing the same problem as chris - the site collections are consuming the content types, but if I change anything these changes are not applied in the consuming site collections after republishing. Did you find any solution to this?
#  @Chris and Mel by Wictor
Screenshot from websnpr Make sure that both the publishing side and consuming side have the necessary (by the CT's) features activated. Also make sure that your MMS service is correct configured, you must check that the property "Push-down Content Type Publishing updates from the Content Type Gallery to sub-sites and lists using the content type" is enabled.
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  SharePoint 2010 Content Type Hub by Trackback
Screenshot from websnpr SharePoint 2010 Content Type Hub
#  7 by 5
Screenshot from websnpr 9
#  Another Great Post by Paul Grimley
Screenshot from websnpr Thanks for the great post
#  Summing up the year of 2010 and embracing 2011 by Trackback
Screenshot from websnpr The time has come for me to do my summary post of 2010. This is my fifth summary post (2006, 2007, 2008 and 2009). This year has been truly amazing. Working in the SharePoint world has been so interes...
#  Lookup content type by Manoj
Is there a way w can publish Look up type content. I created Content Hub and I am able to publish too. But look-up type is not publishing.
#  Changing Content Type Hub URL by Stefan Kjellberg
Screenshot from websnpr Have found an untested ( by me) way to change the URL. Use PowerShell: $ Application Service name = "name" " $ ContentTypeHub ""
#  Deleted Content Type but Still Showing Up by Ashley
I have Deleted a Content Type from the Hub - but when I go to apply a content type to a list - it is still available for selection. How can I really remove that content type all together?
#  CTH with MMS Error by Jens W
Screenshot from websnpr Hi Wictor I have a problem with the CTH in combination with MMS Fields. The problem occurs when I´m publishing the contenttype from the hub the second time. After the second publich the mms fileds seems to lose their connection to the(note) field holding the value of the choice from the MMSList. After a few google searches I found an article describing the problem. http://devramblings.wordpress.com/2011/07/11/introducing-the-template-library-connector-for-sharepoint-2010/ The solution is to put the note fields in the ctype on the hub. After this fix it worked fine to edit metadata from the webbrowser but it turned out that I just puched the error a step further. Now the DIP in office complaines about douplicate note fields instead. It seems I'm in a catch-22. Hope that you or somebody else reading this blog have an ansver how to deal with this MS Feature.
Make a comment on this post:
Subject:  

Your name:  
Your Url:  
Note: submissions may have to be approved before being visible, so don't submit your comment multiple times.