This blog post is a guide on how to create a Content Type Hub Site Collection located in the root of a Web Application within its own database.

Create a Content Type Hub Database

I like to have my Content Type Hub Site Collection in its own database. Here is the code/example to create a database for the content type hub.

Example

$CTHDBName = “ContentTypeHub_DB”

$WebApplicationURL = “http://SharePointRandy/”

New-SPContentDatabase -Name ContentTypeHub_DB -WebApplication $WebApplicationURL

Further reading http://technet.microsoft.com/en-us/library/ff607572.aspx

Create a Managed Path

As I want my Content Type Hub to be at the root of my Web Application (http://<webapplication>/contenttypehub) I need to create a managed path. The PowerShell to do this is here:

Example

$RelativeURL = “/ContentTypeHub”

$WebApplicationURL = “http://SharePointRandy/”

New-SPManagedPath -RelativeURL $RelativeURL -WebApplication $WebApplicationURL
-Explicit

Further reading http://technet.microsoft.com/en-us/library/ff607693.aspx

Create Content Type Hub Site Collection

It is easy to create a Content Database through the GUI but to ensure it is located in the database just created it is easier to do in PowerShell with the –ContentDatabase Parameter.

Example

$CTHurl = “http://SharePointRandy/ContentTypeHub”

$CTHOwnerAlias = “<domain>\<user>”

$CTHTemplate = “STS#1″

$CTHDBName = “ContentTypeHub_DB”

New-SPSite -Url $CTHurl -OwnerAlias $CTHOwnerAlias -Template $CTHTemplate -ContentDatabase $CTHDBName

Further reading http://technet.microsoft.com/en-us/library/ff607937.aspx

As I don’t want to use the Content Type Hub Site Collection for anything else I like to prevent further Site Collections being created in the Content Type Hub database. To do this, run the following PowerShell:

Example

$CTHDBName = ContentTypeHub_DB

Set-SPContentDatabase -Identity $CTHDBName -Status Offline

Further reading http://technet.microsoft.com/en-us/library/ff607912.aspx

Activate Content Type Syndication Hub

You need to activate the Content Type Syndication Hub feature to allow the Managed Metadata Service Application to connect to the Content Type Hub Site Collection.

$CTHurl = “http://SharePointRandy/ContentTypeHub”

Enable-SPFeature -Identity 9a447926-5937-44cb-857a-d3829301c73b -Url $CTHurl

Connect the Managed Metadata Service Application to the Content Type Hub

To connect the Managed Metadata Service Application to the Content Type Hub you need to use the command Set-SPMetadataServiceApplication. I’ll explain this in another blog post but for now see: http://technet.microsoft.com/en-us/library/ff607738.aspx

 

Click here to register for the next SUGUK:EA  event. We hope to have some books to give away, details to follow.

 

Click here to register for the next SUGUK:EA  event. We hope to have some books and posters to give away, details to follow.

 

Please register for the next SharePoint User Group UK in East Anglia:

Sessions:

  • Symon Garfield- Working Together: The Secrets of Collaboration and  Enterprise Social Computing with SharePoint 2010
  • Giles Hamson – Integration of Project Server and SharePoint 2010: Not just another Managed Service within SharePoint

 
SharePoint Saturday UK 2011
I am attending SharePoint Saturday UK 2011

Badge by Alex Pearce

 

Here are my slides from the European SharePoint Best Practice Conference 2011.

 

SharePint Night

A chance for everyone and anyone to meet up with the speakers, SharePoint MVPs and Industry Experts from the European Best Practices SharePoint Conference.

More details: here:
http://sharepointbestpractices.co.uk/SharePint.html

 

Euopean SharePoint Best Practices Conference 2011I’ll be speaking at the European SharePoint Best Practices Conference this year as one of the community track speakers. For details please visit the site: http://www.sharepointbestpractices.co.uk/

 

Last week I attended the SUGUKEA (http://suguk.org/forums/48/ShowForum.aspx). Once again the audience were treated to two very good presentations.

The first was by Jess Meats (http://blogs.technet.com/b/jessmeats/ ) on InfoPath. She demonstrated a number of the improvements to InfoPath as well as highlighted some of the general functionality.

The Second presentation was by Peter Baddeley (www.baddaz.com). Peter took showed how quickly it was possible to build business tools on top of SharePoint Foundation 2010 and how it has improved since WSS 3.0.
If there is anyone out there who wishes to present at the user group then let me know.

 

Post SUGUK EA meeting on the 11 November their will be a SharePint, hope you can stay after for a quick drink.

SharePint

SharePint

SharePint logo designed by Sam Dolan of Pink Petrol

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
© 2012 SharePoint Randy Suffusion theme by Sayontan Sinha