Mark Ferraz

All MindsharpBlogs

My Links

Archives

Image Galleries

Blog Stats

Mark's Links

BP Book Question - Global Stapler

Question:

I've been reading the Best Practices for MOSS book, and am interested in your comments on page 493 about "Feature Site Template Association" as well as the "Global Stapler".

 

I'm familiar with content type deployment via feature stapling with Object Model code (i.e. Scope = Farm, global template, feature manifest with content type defn.), but could you elaborate on the "global stapler" that you referenced in the book?  Is this something from STSADM?


I believe the requirement is to ensure all documents in the Farm collect a few additional columns, which most likely involves adding columns to the "Document" content type.  Since we are in a pre-provisioning state, would you also consider a custom list definition?

Answer:

The “Global Template” has a template ID of “GLOBAL”, so when you create a new FeatureSiteTemplateAssociation Feature definition, in which you will payload your event receiver code or content type definitions (I would recommend the definitions in this case, with a single additional unique derivation and staple it to “GLOBAL” rather than just a team site (“STS#0) for example. When you do this, the association will occur for all site definitions in the system, upon creation of a new site, for which that site definition configuration does not have an Onet.xml Configuration attribute “AllowGlobalFeatureAssociations=FALSE” (say for example, the “Blank Site” aka “STS#1” or Central Admin). If you wish to have your feature activated on create for these sites as well, you will need to specifically create an additional stapler for those identified site definitions, as the global stapler will not take effect.

 

I would strongly recommend against a custom list definition, for many reasons, most of all which is upgradability. There is a much better way of performing list configurations using composite controls. I like to have all site level configuration performed via delegate controls, which I detail in my blog post, and for list configurations I like to use a self-hiding  CustomAction feature which tags the root folder property bag. This feature can then perform all the needed changes for the out of box lists you which to control, eliminating the need for a custom list definition.

 

Sample Solution

 

The below sample solution includes everything you need to get started with the deployment of content types and site columns to libraries farm-wide using a composite architecture. Please note the code included is not production-ready, and should be tested, have logging added, etc.

 

http://www.solutionsmark.com/Share/ContosoSolution.zip

 

posted on Tuesday, November 04, 2008 1:50 PM

Feedback

# Eruption kills at least 4 in Afghan money 10/8/2009 6:17 AM alientiff

At least 67 people, including members of Afghan collateral forces, were also wounded in the dissolve, which occurred on a road between the Indian Embassy that <a href=http://buy-tramadol.buyephderineonline.com/>purchase tramadol</a> and the Inside The cloth, said Sayed Kabir Amiri, the forefront of all hospitals in the capital.

# Possibly i can help? 10/31/2009 9:24 AM Seemomef

My father sad so.
Anyway, i'm not sure.


cheers,
______________
Seemomef
<a href=http://plone.easi.wallonie.be/ProcessusGeneriques/author/GeneralPropecia>where">http://plone.easi.wallonie.be/ProcessusGeneriques/author/GeneralPropecia>where to buy discount propecia in Miami</a>
http://plone.easi.wallonie.be/ProcessusGeneriques/author/GeneralPropecia

# Furniture, wood decks, gazebos 11/12/2009 5:13 AM gailiariA

We repair teak furniture, wood decks, gazebos and any other exterior wood surfaces.

<b><a href=http://teakmaster.com>teak restorer</a></b>

# how I made up to 5K USD month discovering best money making opportunities 11/13/2009 12:22 PM SkicSmekintok

recently I was surfing internet and suddenly I came across website named www.home-businessreviews.com I learned how to start my own home business and i was able after all quit my job where i worked 1 year, now I'm earning 150$/day. I was able to earn such kind of cash because I found some really great home business reviews. At site called www.home-businessreviews.com

Anyway seems that website owner at last Came across really good online business program which helped him to begin his own home based business, so he eventually decided to set up website and write about his own experience about making money online. It seems that he lost so much money before he came across winner home business program which actually work. But which one? Find out at website below!
<a href=http://www.home-businessreviews.com>home business</a>

# Welcome to The Jungle 2/6/2010 3:07 AM mens sandals

Nice work! I can't get Welcome to the Jungle out of my head! ''Welcome to The Jungle, We've Got Fun And Games"


Comments on this post are closed.
Title  
Name  
Url
CAPTCHA
Protected by Clearscreen.SharpHIPEnter the code you see:
Comments