Using Managed Metadata in a Blank Site

A question came up in last night’s MVP Experts chat about a problem using the Enterprise Metadata and Keywords Settings in a Blank site.  We suggested various solutions like not having a Managed Metadata service application configured or the fact that the Enterprise Keywords column is not available for Metadata based navigation.  But the questioner said that his problem was that the link didn’t appear in his document library settings page like it should. For a while that had all of the MVPs stumped because none of us had seen a site that didn’t contain the setting.  I quickly created a new site based on the Blank Site template in my test image and as I expected the link was there.  So I told the questioner that we were all stumped on what might be causing the his problem. 

The Enterprise Metadata and Keywords Settings link contains two checkboxes.  The first adds a Managed Metadata column called Enterprise Keywords to the document library.  The second adds Enterprise Keywords and other Managed Metadata to your My Site profile.  You can see the two links in the screenshot below.

EnterpriseKeywords

The questioner came back later to say that he had found a solution to his problem by activating a hidden Feature that he found in some Blog posts.  The Feature ID he used was “73EF14B1-13A9-416b-A9B5-ECECA2B0604C”.  I was happy that he found his solution, but decided that some further investigation was warranted to figure out what was happening and why?

It turns out that the Feature he was activating is Site scoped Feature called TaxonomyFieldAdded.  The Feature adds two links called Term store management and Content type publishing to the Site Settings page.  It also adds the Enterprise Metadata and Keywords Settings link to the Library Settings page.  There is also a Feature receiver assembly defined to handle events when the feature is installed, activated, deactivated, or uninstalled.  This Feature adds support for Managed metadata field support to an entire site collection.  But since the feature is hidden it leaves us with several questions:

  1. What normally activates this feature?
  2. Why was it active in the Blank site I created but not the one the questioner created?
  3. Is it safe to activate the feature manually?
  4. Why isn’t the feature activated in a Blank Site?

 

So I decided to take some time last night after the chat to track down answers to these questions and share them on my blog this morning.

What normally activates the TaxonomyFieldAdded Feature?

The answer to this is pretty straightforward.  There is another feature called TaxonomyFeatureStapler that “staples” the TaxonomyFieldAdded Feature to most of the site definitions used in SharePoint, including the Global site definition.  You can see the Elements file from the feature below.  The one glaring omission from the list is “STS#1”, which is of course the site definition for a Blank Site. 

<?xml version="1.0" encoding="utf-8" ?> 

<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="GLOBAL" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="STS#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="STS#2" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="MPS#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="MPS#1" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="MPS#2" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="MPS#3" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="MPS#4" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="WIKI#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="BLOG#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SGS#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="BDR#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="OFFILE#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="OFFILE#1" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPS#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPSPERS#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPSMSITE#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPSNEWS#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPSNHOME#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPSSITES#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPSREPORTCENTER#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SPSPORTAL#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="SRCHCEN#0" />
<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="PROFILES#0" />

<FeatureSiteTemplateAssociation Id="73EF14B1-13A9-416b-A9B5-ECECA2B0604C" TemplateName="CMSPUBLISHING#0" />

</Elements>

Why was it active in my Blank site but not the questioner’s?

After looking at the contents of the TaxonomyFieldAdded Feature itself and the Feature that staples it to most site definitions the answer to this question is pretty clear.  As a Site scoped feature this feature is only activated when creating a top level site for a new site collection.  The questioner had created his Blank site as the root of a new site collection while I had created mine as a sub site in a site collection with a Team site as the root.  So in my site collection the TaxonomyFieldAdded Feature was activated when I built the root Team site while the questioner never got the Feature by building their root site as a Blank site.

Is it safe to activate theTaxonomyFieldAdded Feature manually?

This question is a little harder to answer, but it would appear that the answer is yes its safe.  There are several points that lead me to believe that it is safe to activate manually:

  • The TaxonomyFeatureStapler Feature adds it to most of the other site definitions, including the Global template that everything else inherits from.  Its therefore likely that the Feature doesn’t depend on a particular site definition’s capabilities. 
  • The TaxonomyFieldAdded Feature itself is self contained and doesn’t have any additional Feature dependencies.
  • The Feature works normally in a sub-site created from the Blank Site template if the root site was created with one of the other “stapled” templates.

So it would appear to be safe to activate this hidden feature on any site collection, including those built with a Blank site at the root.  You can use the command line below to activate the feature using STSADM:

STSADM -o activatefeature -n TaxonomyFieldAdded -url <URL of Root Site>

 

Why isn’t the feature activated in a Blank Site based Site Collection?

I can’t give you a definitive answer for this one since I’m not on the SharePoint product team that developed the definitions.  But I think the answer can be found in the purpose of the Blank Site template.  This template is designed to be a completely blank slate to which you can add whatever you want.  Very few but the most basic Features are automatically activated when creating a Blank Site.  Even the Basic Standard and Enterprise Site Features are left deactivated.  So I think the TaxonomyFieldAdded Feature is left out for the same reason, to keep the Blank Site as bare as possible.

I hope this little exercise clears up the mystery and helps teach all of us a bit more about Features in SharePoint 2010.

SharePoint 2010 Trial Versions Now Available

SharePoint2010 If you’ve been wanting to get your hands on SharePoint 2010, but don’t have a subscription to either Technet or MSDN then here is your chance.  180 day evaluation copies of 4 different editions of SharePoint 2010 are now available for download FREE!  These are all SharePoint Server editions (Remember you can download a fully licensed copy of SharePoint Foundation for FREE already.)  The four different evaluation editions available are listed below:

  • SharePoint Server 2010 Enterprise License  – For organizations looking to expand their business collaboration platform to enable advanced scenarios. Use the Enterprise capabilities of SharePoint to fully interoperate with external line-of-business applications, Web services, and Microsoft Office client applications; make better decisions with rich data visualization, dashboards, and advanced analytics; and build robust forms and workflow-based solutions.
  • SharePoint Server 2010 Standard License – For organizations looking to deploy a business collaboration platform across all types of content. Use the core capabilities of SharePoint to manage content and business processes, find and share information and expertise, and simplify how people work together across organizational boundaries.
  • SharePoint Server 2010 for Internet Sites, Enterprise – For organizations looking to create customer-facing public internet sites and private extranets using the full enterprise capabilities of SharePoint. This provides full SharePoint Enterprise functionality and no other technical limits.
  • SharePoint Server 2010 for Internet Sites, Standard – For small and mid-sized organizations looking to create public Internet sites or basic extranets using the Standard features of SharePoint Server 2010.

Here’s the link you’ll need to download any of the four.  Registration is required and upgrades from Beta versions of the product are not supported.

http://technet.microsoft.com/en-us/evalcenter/ee388573.aspx

You’ll also need evaluation copies of a 64 bit server operating system and SQL server if you want to evaluate the full product.  You can download evaluation copies of Windows Server 2008 r2 and SQL Server 2008 r2 from the following links:

Windows Server 2008 r2

https://www.microsoft.com/en-us/download/details.aspx?id=11093

SQL Server 2008 r2

http://www.microsoft.com/sqlserver/2008/en/us/R2Downloads.aspx

See my previous post if you want to install it on Windows 7

May SharePoint Q&A with MVP Experts

MVP_FullColor_ForScreenDo you have tough technical questions regarding SharePoint for which you’re seeking answers? Do you want to tap into the deep knowledge of the talented Microsoft Most Valuable Professionals? Then join me and other SharePoint MVPs for answers to your questions in a live forum. So please join us and bring on the questions! These chats will cover WSS, MOSS and the SharePoint 2010. Topics include setup and administration, design, development and general questions. There are two different times for the chats.  Both are listed below.  I’ll be in the one on Tuesday May 25th, but you’ll find lots of experts available both days.

Tue, May 25th, 2010

7pm EDT (4pm PDT)

Wed, May 26th, 2010

Noon EDT (9am PDT)

Join the chat room on the day of the chat:

URL: http://www.microsoft.com/communities/chats/chatrooms/msdn.aspx

SharePoint 2010 Design & Deployment Best Practices

Please join Gary LaPointe and me for the webinar entitled SharePoint 2010 Design & Deployment Best Practices, where we will outline various critical considerations and best practice strategies for the planning, design and deployment of SharePoint 2010.

The webinar will include live demonstrations and discussion of the following points:

  • The pros and cons of the different approaches to installing and configuring SharePoint 2010
  • Configuration Best Practices for SharePoint 2010 farms
  • The Services Architecture; dependencies, licensing and topologies
  • Information Architecture guidance for sizing, multilingual support, multi-tenancy, etc.
  • Using tools such as SharePoint Composer & SharePoint Maestro to plan, document, install and configure a SharePoint 2010 deployment
  • Avoiding common pitfalls

Whether you are new to SharePoint or upgrading from a previous version, you will gain an understanding of how to effectively implement SharePoint 2010 in accordance with best practices and gain insights into techniques and tools that mitigate the effort and risk associated with implementation.

Sign-Up for the Seminar here:

http://www.sharesquared.com/resources/Pages/SharePoint2010BestPractices.aspx

ShareSquared

My Blog has moved…. To Here!

SmashComputer If you are reading this, then you found my new Blog site where I’ll be maintaining my Blog going forward.  My old Blog at http://SharePoint.Mindsharpblogs.com/pauls has been having displaying some problems the last couple months and since I’m no longer with Mindsharp I don’t have the access to investigate and fix the problems myself.  So I’ve been migrating all of my archive posts to this Blog, where I have full administrative control, for the last couple of months and posting to both.  I’ve decided its time to make the switchover, so going forward this will be my primary Blog listing.  Please update your RSS feeds to point at this location to keep in contact.

I’ll still be cross posting to the old site whenever possible, but I can’t guarantee that the problems there will be resolved.  So keeping your eye on this site is a better idea.