Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [feature-stapling]

Causes the attachment of a Feature to all new instances of sites that use a given site definition, without modifying the site definition or creating code routines to activate the Feature on each site. Also known as a feature site template association.

0
votes
1answer
17 views

Feature stapling and custom template for Community Site - SharePoint 2013

Using feature stapling, I have created custom code that attaches a new master page as well as adds a webpart to a default page for sites of the type Community. It worked fine in my dev environment, ...
0
votes
0answers
87 views

How to add the possibility to activate/deactivate my application customiser-SPFX

From this article Use an SPFx Application Customizer to add JavaScript (e.g. header) to every page in a site I can see you can enable a feature does one disable the feature. Not tried it yet but will ...
3
votes
0answers
71 views

Unable to create site due to feature stapler activated branding

I am trying to create a new site (SPSite), in a SharePoint 2016 portal environment, using the following code: SPWebApplication webApplication = SPWebApplication.Lookup(new System.Uri("http://...
0
votes
1answer
123 views

Publishing Pages creation during Site creation through site definition

I have deployed a custom site definition.. Features available in onet.xml are - Site Features- SharePoint Server Publishing Infrastructure Publishing Workflow feature Web Features Office ...
1
vote
1answer
96 views

Custom DisplayForm not linking to the Custom Content Type's Display Form

I have a Content Type that has been stapled with a feature to SPSERS#2 and BLOG#0. The linkage does not work when i staple the feature to the BlogSiteTemplate. When i checked the content type in ...
1
vote
2answers
428 views

Change MySite template

When a user in SharePoint 2013 clicks on his name and 'about me' for the first time, a MySite will be created. What are the possibilities to change the template that is used to create this site (...
2
votes
1answer
246 views

How to create a feature stapler for all webtemplates?

I have created a delegate control and try to provision it to all new site collections. It is working now only for the web template "MySite". How to make it possible to provision this feature for all ...
0
votes
2answers
784 views

How to trigger some custom c# code when a new site collection is created? Feature Stapling, delegated control?

I am using sp 2013. I have some custom code which is adding some webpart to the welcome page. I would like to execute this code for each new site collection depending on a template (mysites). Someone ...
1
vote
2answers
79 views

Feature Stapler on Document Library to Set New Folder Off

I would like to have the 'New Folder' option turned off be Default. Are there examples of maybe creating a Feature stapler to do this?
0
votes
0answers
101 views

Change masterpage of a sub-site automatically, for multiple site collections

I am working in an environment which has more than 1000 site collections. My requirement is that when I create a new subsite in any of the site collection, it should automatically inherit masterpage ...
0
votes
1answer
682 views

MySite feature stapler for personal site collection master page branding not working

I'm following this blog http://sharepointologic.blogspot.in/2013/04/branding-sharepoint-2013-my-sites-with.html and can't seem to get the feature stapler at the Farm scope to staple the site scoped ...
0
votes
2answers
71 views

Feature code not upgrading

I am using a feature (with feature receiver) to create some lists by code on "my site". The feature is site scoped and is activated by a farm scoped feature (using feature stapling) when a new my site ...
6
votes
1answer
113 views

Provisioning MySite with feature that creates library with content type from CT hub

I'm having a problem when provisioning a new user's MySite. I'm trying to activate a feature that adds library / lists to the current user. The library / list should use a content type from the hub! ...
0
votes
1answer
130 views

How Feature stappling will effect the existing site collections?

I have added a Farm scope feature stapler that staples an existing feature and that existing feature deploys master page. When i create a new site collection, the master page deploys automatically. I ...
0
votes
2answers
160 views

MySite Branding Event Receiver not firing

I followed this blog for creating mysite branding for sharpoint 2013.Everything works fine but feature stapler doesnt work for new Personal sites. but if i manually activate the feature than it works ...
2
votes
1answer
31 views

Feature stapling to delete the folder in SharePoint [duplicate]

My requirement is whenever particular My Site is created default folder will appear, I don't want that default folder, so need to create a feature stapling on activated method whenever my site ...
1
vote
1answer
525 views

Feature stapling always returns item does not exist: it may have been deleted by another user

I'm attempting to create a feature stapled solution that pushes out custom branding to every new site collection created. The following code is in my event receiver: public override void ...
2
votes
1answer
330 views

Masterpage Feature Stapling not applied to Blog (SharePoint 2013)

I've created a feature staple for my sites to apply a particular master page. It appears to work for all the subsites/pages in /personal/[userid]/ except for the blog. Any ideas?
0
votes
1answer
50 views

Stapling feature from different project

We have 2 projects in visual studio. Project 1 has 2 features. Feature A is site scoped module Feature B is web application scoped feature stapler. (empty element with ...
0
votes
1answer
902 views

Logic to set master page for all sites/webs in web application

I am able to set the masterpage to all existing sites in site collection as well as the newly created sites/site collections using this link. But, I have a question and want to know if this is ...
0
votes
1answer
699 views

My Site Feature stapling dependencies?

I have a module for Stapling features in SPSPERS#2 (My Sites). In the Elements.xml of the stapling module I have this: <!-- My Site contents (Content Types, lists, etc)--> <...
3
votes
3answers
5k views

Turn Off Minimal Download Strategy when stapling mysite

I have to deactivate the MDS when provisioning my sites. I have tried with an event receiver in a custom feature but it seems that when I execute this code in the receiver Guid featureGuid = new ...
0
votes
1answer
36 views

Site provision cycle

I have some site definitions in which I have added multiple lists into the <Lists> tag and then I've added a stapling feature which will trigger a series of web-scoped features when sites are ...
2
votes
4answers
750 views

feature stapling in site definition

I want to create site definition using VS2010, also when any site get created it should activate few feature automatically. How to use feature stapling exactly , please anyone let me know step by step ...
1
vote
1answer
572 views

How to deactivate feature when creating My Site

I have activated the self service creation for My Site Web Application. The thing is that in SharePoint 2013 there is a feature named Minimal Download Strategy (Web Scope) that is activated by ...
10
votes
1answer
3k views

Feature stapling for applying custom master page on site collection creation doesn't work

I've got a WebApplication which should contain a publishing site collection and a custom masterpage for that site collection. I wanted to achieve, if this site collection is created during deployment, ...
5
votes
1answer
409 views

Feature Stapling and SPWeb.Navigation (Top Nav bar or quick launch) changes not applying

I am using feature stapling to add a feature to all sites in a web application. This feature creates a list, creates a site page, creates a WebPart, adds the WebPart to the site page, and then it is ...
0
votes
1answer
437 views

Delete feature using event receiver on a farm feature

There is a farm feature and there is a web-scoped feature. Web feature does stuff on multiple sites. If ever i want to get rid of the feature on all sites, I have a farm feature that has on ...
4
votes
1answer
15k views

Error occurred in deployment step 'Activate Features' - When feature stapling to My Sites

I am trying to deploy a feature to My Sites in SharePoint 2010 and nothing seems to be working. I did this perfectly fine on the test environment but can't seem to get it working on the production ...
0
votes
1answer
667 views

Switching Ribbon and Navigation Bar Location, MySites

I'm trying to get the Top Navigation Bar (My Site, My Content, My Profile...) to go below the Top Ribbon. Basically I want the top area of MySites to look just like a regular site collection. Any idea ...
0
votes
2answers
621 views

Adding a WebPart to a page (Stapling)

I have been trying to do this for a while now its a huge pain as I can't seem to find any good guides to show all steps for adding a web part to a page using a feature staple. I have the feature ...
2
votes
0answers
147 views

Site is Provisioned but Content Type List is still empty

I have this feature that I am trying to run in order to configure a site, this feature among other things creates pages based on content types, etc. The problem I am facing is that every time i am ...
1
vote
1answer
631 views

Feature Stapling and Inheritance in My Site/My Content

I have a SP 2010 Enterprise/VS 2010 workstation. I have built and deployed a custom master/CSS/asset library for a standard My Site deployment as a feature and modules. The master deploys and ...
2
votes
2answers
348 views

SharePoint Feature Activation

Is there a way that I can copy a page from Pages library into another library (Site Pages) automatically once my feature is activated? I have written a custom event receiver which will set the master ...
0
votes
1answer
105 views

Can i staple multiple feature in moss 2007

I have deployed a Feature Stapler feature that attach two feature to the BLANKINTERNET#2 template. Now I need to update this staple feature to add one more feature. I have already added another ...
0
votes
1answer
749 views

Sharepoint 2010 MySite feature Stapling Error

In our environment i had created a feature stapler which will brand the personal site of users so that it will follow the same branding all over the site collection but when a user is creating a blog ...
3
votes
3answers
646 views

Alternatives to Feature Stapling?

I'm trying to determine if there is any way to automatically deploy a few web parts on the creation of new My Sites pages, but in a manner that doesn't use feature stapling. I know how to feature ...
3
votes
1answer
329 views

Listadded events on My Site omits Personal and Shared Documents creation

I want to have a feature which will change some settings on every list on My Site. Problem is i cant change settings for two main list: Shared and Personal Documents. For testing I have web feature ...
41
votes
1answer
15k views

What is “feature stapling”?

I've seen the term "feature stapling" used around this site and some blogs. What exactly does this mean? My best guess is that it has something to do with dynamically activating features from other ...
1
vote
0answers
381 views

MySite Feature stapling

I need to add a custom webpart to default.aspx page of created MySite. I followed this post and it is working well. What is strange thou, it works well for users that authenticate via Windows ...
1
vote
1answer
321 views

Issue with the survey list settings?

Have created a feature(list provisioning) to update the "showuser" property of the survey list and stappled on the webapplication, it works perfectly fine and sets the list property when the survey ...
1
vote
2answers
146 views

Execute code on site creation in SharePoint 2010

We're trying to create a SharePoint 2010 feature on a site collection that when active would execute code each time a web site is created. We're using Visual Studio 2010. The code will set properties ...
5
votes
1answer
150 views

How to handle web references becoming stale in a web feature activation

We have a number of web-scoped features all stapled to a site definition, so they are all activated in turn when a web is created from the definition. It seems the feature receivers all share the ...
3
votes
3answers
531 views

Feature Stapling turn off feature

Is it possible to turn off a feature using featuring stapling? How could you turn a feature off for all new sites that are created by default? Edit I have a feature staple to turn on publishing on ...
1
vote
1answer
408 views

VIsual Studio editing feature.xml

I am trying to create a a feature staple. To do this I need to create a feature and then edit the feature.xml to be like: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <...
1
vote
2answers
2k views

How to trace the ListAdded event for the entire SharePoint 2010 farm?

In our SharePoint 2010 environment, we want to enforce the users to choose the option "show user names in the survey list" (survey list) however there may be a time when user may choose "No" to this ...
1
vote
1answer
205 views

Stapled Web-scoped feature depending on Site-scoped feature: possible?

I have three features in a solution: A Web-scoped feature (A): has a FeatureActivated call to set up a site A Site-scoped feature (B): contains WebParts A uses A stapling feature (C): staples A to a ...
6
votes
1answer
95 views

Which database will feature stapling affect?

We are testing feature stapling and need to revert to a point before the feature stapling was run. To do this do we just need to restore the content database, or do we also need to restore the ...
1
vote
1answer
814 views

How to feature staple to MySites Master Page?

Is there a way to feature staple to the MySites site definition? I want to be able to style it via the Master Page.
3
votes
6answers
1k views

Feature stapling vs Site Definitions

I curious of what you’re experiences are one the user of site definition compared to feature stapling. In a video on Channel 9 Ted Patterson explains that feature stapling is the way to go. It would ...