.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Feature Stapling in SharePoint 2010 Web Templates

Posted By:      Posted Date: September 28, 2010    Points: 0   Category :SharePoint

Hi All

We have a new requirement where we have to staple a number of features to a custom web templates. Now when we try to staple the features to the custom web template, they are not getting reflected in the custom web templates.

Is feature stapling allowed in custom Web Templates? Could someone help out in this regard.


- Sridhar Please visit my blog http://sharepointschool.wordpress.com/ for getting started with SharePoint

View Complete Post

More Related Resource Links

SharePoint 2010 Master page feature stapling - not sure where to put files


I have successfully added a branding feature to my 2010 environment that activates on install. Just as expected, it does not work for subsite creation. I have seen a number of articles/blog posts on how to create a feature stapler for SP2007. However, I am having a hard time finding a working solution for SP2010 using VS2010.

I have a couple of questions that I hope someone can point me in the right direction on:

1. In my project I have a branding feature, this contains the EventReceiver that applies the change. Can I have a second feature here that does the stapling or does it need to be in a completely seperate project?

2. Everything I read points to two files feature.xml and elements.xml, are both of those supposed to be under Features in Solution Explorer or are they located somewhere else or do they need to be create. If they need to be created, where do they belong?

3. In the EventReceiver.cs file there is a GUID that was automatically generated. Is this the GUID referenced in the feature.xml?

Hopefully with these questions answered I can move forward and find a solution to getting the stapler working.




Feature Stapling and the FeatureActivated Event in Windows SharePoint Services 3.0

You can attach (or staple) a SharePoint Feature to a site definition without modifying the original site definition. Learn about issues related to using Feature Stapling with the SPFeatureReceiver.FeatureActivated event.

SharePoint 2010 - noticed a possible bug with regard to custom site templates.

Hi All, I'm wondering has anyone else noticed this behaviour in relation to custom site templates. I wanted to move an site A ( content included ) from site collection A to site collection B. I saved site A as a site template ( content included ) I uploaded the site template to site collection B's solution gallery. I created Site B on site collection B using this site template. unfortunately the top links to site A have been preserved causing major confusion to the users. i.e. the shared documents document library link and the tasks link both link to Site A! the links to documents within the document library on the other hand are to site B!? Is this a known issue ? Is this something that I should have expected to happen? look forward to hearing other folks experience with this functionality. thanks and regards, Counie  

"Personalise this Page" feature cannot be found in SharePoint 2010 portal

I am unable to find the "Personalise this Page" option in SharePoint 2010 as in MOSS 2007. Please help me to get this feature  enabled for AD authenticated users.

Best Way to Convert MOSS 2007 Site Templates to SharePoint 2010 Templates

Ok, I just treid to do something that I didn't really think would work, but now that I've seen it fail, I get to ask the question. Is there a best practice on converting site templates built for MOSS 2007 to SharePoint 2010. We have several projects that used the Visual Studio Extensions (v1.3) and the SharePoint Solution Generator to build custom site templates and the .wsp packages. I can add and deploy the solution packages using the STSADM tool, but when I try to create a sub-site based on that template, I get an Object Not Set to an Oject Reference Error. In case anyone is wondering, it works fine in MOSS 2007. I have not tried Visual Studio 2010 yet (it's downloading in the background). I'm just wondering if anyone has run into this and what they did to fix it. TIA, John.

how do you package files with a feature in sharepoint 2010?

In my old sp2007 project, I would create a folder that would contain my feature, when it got deployed, any files would also be deployed along with them, so I could use them during feature activation later on (config xml files). How can I also deploy an xml file in 2010 along with my feature?nonam

Connect to Outlook feature in SharePoint 2010 still using .pst files?


The Connect to Outlook feature in SharePoint Server 2007 uses a .pst file to store content that is visible in Outlook. This has caused issues in the past with a client's enterprise policy of preventing use of .pst files on desktops. This particular client has an application that periodically checks for .pst files and deletes them, which breaks the Connect to Outlook feature for them.

Does SharePoint 2010 use the same functionality to Connect to Outlook, or something different?

SharePoint 2010 Application Templates

Anybody inside MS know when the App Templates will be released ??

Upgrade error on feature when installing cummulative update august 2010 for Sharepoint 2010


We are not able to complete the installation of the cummulative upgrade for august 2010 becase of this error msg:

Feature Infrastructure - 9fnu - High - Feature Upgrade: Exception thrown updating content database with new version number for Feature 'MyFeature' (Id: '1860bfc8-f21b-48f0-bd0d-e7061d36921f') in Site 'http://www.site.com': Object reference not set to an instance of an object. 44432789-ef04-4587-9cb9-f97a5d7e0258

This is a custom feature that our company has developed. It is very simple, contains two content types (view xml below):

<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Title="MyCTFeature" Description="My feature description" Id="1860bfc8-f21b-48f0-bd0d-e7061d36921f" Scope="Site" Version="">
    <ActivationDependency FeatureDescription="Custom fields" FeatureId="24b9624b-0e56-44ad-9757-d06a5e1225af" FeatureTitle="MyFieldsFeature" />
    <ElementManifest Location="Kjerneside\Elements.xml" />
    <ElementManifest Location="Informasjonsside\Eleme

feature for content type in sharepoint 2010

how can i create a feature for content type in sharepoint 2010

Activating Publishing Feature for Team Site Template in SharePoint 2010


A new site collection has been created and uses SharePoint 2010 team site template. How can you activate the publishing feature on it?


I have activated the publishing feature at site collection and site level but I still can edit pages etc without requiring check out and approval/publishing. There are probably settings I need to activate on other doc libraries but I wanted to know the best practice for this scenario and how to configure it.



Email templates in SharePoint Server 2010


?????? ??????? ? ??м, ????? ?????м????????? ???????? ?????????, ??????? ????????? SharePoint ??? ?????????? ???? ???????????? ?? ?????? ? ?????????м, ??м?????? ????м????? ??? ???????, ???????? ?????????? ? ?.?. ????? ?????????? ??????? ???????? ? ?????м? ????(??, ??????? ??????? ?????????? ? alerttemplates.xml), ? ????????? ????? ????????? ? ??? ? ?? ??м??... :( ??????????, ??????????, ??? ? ????м ??????м м???? ????????? ???????? ????????? ? SharePoint 2010?


Could you post your question in English?

Ok, I'll try:)

I want to customize the emails that send SharePoint Server 2010 when adding a user's rights to work with documents, editing documents or lists, create alerts, etc. Some alerts I customise (those patterns which are located in alerttemplates.xml), and the rest of the set, I never managed to ... : ( Can you tell me where and how can I configure email messages in SharePoint 2010?

Newsgator feature with socical site sharepoint 2010


Hi Team,

I am planning to use NewsGator socical feature into  SharePoint 2010. I am new in Newsgator. I want help on the NewsGator Implementation.

I need to implement NewsGator 2010 social sites offering for MySites.

1. How we can Implement the NewsGator on Socical site?

2. Any technical reference is avilable?


Thanks in advance.


Neeraj Shukla

Set default Page Layout using Feature Stapling in SharePoint Site



I need to create custom SharePoint Feature using Visual Studio to set Default Page Layout for the publishing pages created in publishing site/ sub-sites.

Can you please guide me steps to create the custom feature using Visual Studio and how to deploy the same in the site.


Abhijit Sil

Sharepoint 2010 Search feature not working


I just updated from MOSS 2007 to MOSS 2010. Everything looks like it went well and most of the features are working except for the search feature.  When I search for a known document that I know is in a library, Sharepoint does not list any results.   I can no longer search for any documents.  ANy ideas on why this is? What are some steps I can take to look for the problem / solution?  I have gone in the search settings in the central admin site and see that there is an error but cant determine what that is.

Content Source Type Start Time End Time Duration Success All Errors
Local SharePoint sites Incremental 11/24/2010 9:55 AM

Sharepoint 2010 - How to Disable Site Templates?

Using Sharepoint 2010, how can one disable site and list templates that are available when a user creates a new site or a new list?

Newbie SharePoint Enterprise 2010 "Activate feature" / deploy error...


Hi all...

I am a complete newbie to SharePoint.

I have installed VS2010 and SharePoint Enterprise 2010.

I am administrator on the server, I am db_owner on content DB, I am in the

WSS_ADMIN_WPG, I am a farm administrator and I am quite sure that I am the site

collection owner.

Aren´t these permissions the right ones for a developer or do I need anything?


When I deploy my solution from VS2010, I get a "
Error occurred in deployment step 'Activate Features': Feature with Id '8bafdda9-

e6cc-49da-9438-49b1f7be383e' is not installed in this farm, and cannot be added to

this scope."

Why do I recieve this error!?

Please help, before I turn mad! :-(

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend