Archive for March, 2010

Creating Managed Metadata Columns in a blank site

March 22, 2010 Leave a comment

If you created a new site using the blank site template and went to add a Managed Metadata site column, you may have got the following:



The required feature (TaxonomyFieldAdded) is hidden, so you need to activate it manually.

Either of these commands will do the trick:

stsadm.exe -o activatefeature -name taxonomyFieldAdded -url <site url> -force


stsadm.exe -o activatefeature -id 73EF14B1-13A9-416b-A9B5-ECECA2B0604C -url <site url> –force

Categories: SharePoint Tags:

SP2010: Associating a Visual Studio workflow with a content type

March 18, 2010 2 comments

In SharePoint 2007, when you created a workflow in Visual Studio, it allowed you to associate it with a list or a content type by default.  In Visual Studio 2010 however, it only allows List association by default.

To allow your workflow to be associated with a content type, you need to modify the elements.xml and specify both list and content type as follows:


See for more details.

Categories: SharePoint Tags:

Finally found a decent Live Writer Plug-in for Code

After trying all the code snippit plug-ins for Windows Live Writer, I finally stumble across one that actually works.

Paste As Visual Studio Code v1.6

I thought the others did work at some point, but now they just come out all garbled (the Block Quote that WLW puts in is probably what’s doing it.)

Below is a sample of the lovely plug-in from Lavernock Enterprises.

Code Snippet
  1. <Farm FarmAccount=service.sp
  2. ConfigDB=SharePoint2010_Config
  3. AdminContentDB=SharePoint2010_Content_Admin
  4. DatabaseServer=CON-DEV-ADSQL
  5. Passphrase=SharePoint2010
  6. defaultAppPoolAccount=service.sp>
  7. <CentralAdmin Port=5555 AuthProvider=NTLM>
  8. <Servers>
  9. <Server Name=CON-DEV-SP10-1 />
  10. </Servers>
  11. </CentralAdmin>
  12. <Services>
  13. </Services>
  14. </Farm>
Categories: Windows