in

Dot Net Mafia

Group site for developer blogs dealing with (usually) .NET, SharePoint, Office 365, Mobile Development, and other Microsoft products, as well as some discussion of general programming related concepts.

This Blog

Syndication

Archives

Corey Roth [MVP]

A SharePoint MVP bringing you the latest time saving tips for SharePoint 2013, Office 365 / SharePoint Online and Visual Studio 2013.

Metadata Inheritance in SharePoint 2010

One new ECM feature that not too many people have talked about is the concept of default values for site columns.  It turns out that you can use default values to do metadata inheritance.  The way it works is that if you have a custom content types for your folder and child items, you can set default values on the folder and when a new document is created it will automatically set those values on the child content type.  We used to have to write code to do this back in MOSS 2007.

After hearing about this new feature, I decided to go to the HOL while I was at SPC and see if I could get it to work.  I created two new content types and created a new folder.  When I brought up the ECB for the folder I saw a new item that said something to the effect of Set Default Values on this Folder.  Here I was able to set values on my site columns.  I then uploaded a document to the folder and viewed the properties and sure enough it had the default values I specified.  I then used the new document button inside the folder and I noticed that the Document Information Panel did not have the default values.  I saved the document to see if they would get set then, but they in fact did not.  Now I don’t know if that is a bug or is by design or not.  I guess only time will tell.

Either way, I think this is a good start and will definitely eliminate some code we have to write in the future.  What I would really like to see next is an option to apply default values to all child items when there is a change (kind of like how you can apply changes to a content type).

Comments

 

jf said:

Hi, I got the same problem as you, and searching for a solution.

April 26, 2010 12:28 PM
 

RV said:

If you haven't figured it out, the rules are here msdn.microsoft.com/.../ee557925.aspx

Likely you used Office 2007. It will works with Office 2010.

October 21, 2010 9:14 AM
 

clubok said:

Same problem here with the DIP and default metadata values.  And I am using Office 2010.

On the plus side, I have successfully used an event receiver to implement cascading defaults - as Corey wished for in the last paragraph.  That's not too hard, at least.

November 17, 2010 10:15 AM
 

abdul fazul said:

When I brought up the ECB for the folder I saw a new item that said something to the effect of Set Default Values on this Folder.  Here I was able to set values on my site columns.  I then uploaded a document to the folder and viewed the properties and sure enough it had the default values I specified.

Do you an more detailed documentation on how this works, especially how does the DOCUMENT get the FOLDER defautl values.

thanks

August 27, 2011 4:52 PM
 

Brian said:

try this tool by qipoint.com, batch edit metadata, allows end user to batch edit taxonomy fields and metadata, bulk check in files

April 18, 2012 9:19 PM

Leave a Comment

(required)  
(optional)
(required)  
Add

About CoreyRoth

Corey Roth is an independent SharePoint consultant specializing in ECM, Apps, and Search.
2015 dotnetmafia.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems