set of functionality that can be turned on at a particular scope level

learn more… | top users | synonyms

23
votes
6answers
4k views

List of best practices on structuring SharePoint 2010 solutions

I am looking for good guidance on how to structure a SharePoint Solution including: Visual Studio Project Structure Features (how to separate features) Namespaces When to use multiple project ...
18
votes
3answers
1k views

Feature based XML vs. Object Model: Which is better for content type development?

I've been researching a few different ways to create content types and I recently discovered that you can use the Object Model to do this. All of the examples I have found online typically use XML ...
18
votes
1answer
5k 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 ...
12
votes
4answers
11k views

Feature with id already exists - force option

I'm getting that old familiar error when trying to deploy my SharePoint solution via Visual Studio: Error occurred in deployment step 'Add Solution': A feature with ID {Guid} has already been ...
12
votes
3answers
7k views

How do I find in which (sub)sites a WebPart/Feature is used?

I need to find out on which (sub)sites a certain webpart is used. In a data sharing environment with many subsites and pages, I want to check if and where certain (third party) webparts are used. Is ...
7
votes
3answers
15k views

Explain it to me: SharePoint deployment scope, solution and features

There are different levels of scope for deployment, but I have not been able to find a definitive explaination of when each applies and what the restrictions are that require loosening (or tightening) ...
7
votes
4answers
8k views

Feature has already been installed. Use the force attribute to explicitly re-install the feature

We have several SharePoint 2010 solutions which we want to deploy to SharePoint 2013 with Visual Studio 2012 running on Windows Server 2012. Site solutions work. But farm solutions just don't. I get ...
7
votes
1answer
4k views

Can't hide the title column in a custom content type

I'm building a custom content type. I've set a bunch of site columns I add to the content type. The content type is used in a custom list definition within a ContentTypeRef node. I'm also willing to ...
6
votes
4answers
2k views

How to customize Feature image for a sandbox solution?

I'd like to add my own icon graphic to a feature. I found out that the ImageUrl attribute in the feature.xml definition points to the /_layouts/IMAGES folder which is out of scope for sandboxed ...
6
votes
4answers
349 views

What is the recommend way to share a single element between multiple features?

In my Visual Studio 2010 SharePoint Project I have a single SPItemEventReceiver that is contained in its own Elements.xml I have 2 site collection features that are mutually exclusive they are never ...
6
votes
1answer
797 views

Problem Extending SPDiagnosticsServiceBase

I am trying to create a feature that Extends the SPDiagnosticServicesBase class following the code described in MSDN That article has example code for extending the SPDiagnosticServicesBase class ...
5
votes
3answers
2k views

When will be the next SharePoint version coming?

I can't wait for a better version of SharePoint. I heard that the next version is SharePoint 2012 but now we have reach year 2012 but yet not receive any news on the beta version or even alpha version ...
5
votes
4answers
2k views

Is feature activation code allowed in Web Template Project?

I created a empty project added module copy onet.xml and default.aspx from layout/template/sts directory to my project and added to my project Ran F-5 to debug and it seems to be working Now I need ...
5
votes
3answers
5k views

Is there a list of Sharepoint 2007 WebParts, Features and ContentTypes that Sharepoint installs with?

Does anyone know where I can find a list of all the WebParts, Features and ContentTypes that are available to a regular Sharepoint installation? What I need to do is identify any of the above in a ...
5
votes
3answers
155 views

Understanding features

So when I make a sp2010 solution, it includes a "feature". Am I right in thinking that a feature is a deployable package? I have a Sharepoint 2010 solution in Visual Studio 2010, with lots of ...
5
votes
5answers
2k views

Include JavaScript in a feature

I remember seeing somewhere that you can include an external JavaScript file in a SharePoint feature if it is in the _layouts folder. For the life of me I can't remember how to do this!
5
votes
1answer
766 views

How can I show an Application page on Feature Activation?

We are developing a custom module for SharePoint. The custom module is based upon SmartPart which means we have created UserControls. There was a problem with SmartPart deployment method as it ...
4
votes
2answers
5k views

How to remove orphaned features

I found some orphaned features under "_layouts/ManageFeatures.aspx?Scope=Site" but they do not show up when I list them up with powershell (get-spgetfeature -site url). They are not in 14 hive and ...
4
votes
1answer
6k views

Sharepoint 2010 - Deploy webpart as Feature scope = web

I want to create and deploy a web part as web-scoped feature. In Visual Studio 2010, when I make the feature scope=web, I cannot add the webpart to that feature as I am able to do when scope=site.
4
votes
1answer
623 views

Including Description with Page Layout

I'm deploying a couple of custom page layouts as part of a feature for SharePoint 2010, and am having issues including the description with the page layout. I'm looking to include descriptive text as ...
4
votes
4answers
686 views

Can you hide the publishing Feature

I've been asked to Hide the Publishing Feature for the farm in Sharepoint 2007. Now I can go on the file system and change the feature definition but as we all know messing about on the 14 hive with ...
4
votes
4answers
1k views

Can I deploy a feature with a configuration value?

I have a feature. This gets compiled into a WSP package, and installed on a particular SharePoint server. So far very standard. But - the feature deploys a custom timer job. The custom timer job ...
4
votes
2answers
7k views

The site template requires that the Feature {GUID} be installed in the farm or site collection

I thought Microsoft did a good job documenting sp2010. I am so frustrated that I can't find anything related to this. I have a web template project. All I want is to run bunch of code when a web is ...
4
votes
1answer
139 views

Add .preview file using feature

I have this feature with a nice little master page inserted through a feature, and it works fine. Now I'm looking into theming, created a composable look. To choose this look in the design manager ...
4
votes
2answers
3k views

How to access a file in the current url or _layouts folder?

My code behind code from the aspx webpage uses a transform.xsl to do some custom xslt transformation. Scenario 1: Try to get the file from the _layouts folder. SPWeb web = SPContext.Current.Web; ...
4
votes
1answer
60 views

How can I add a global control to check user has updated her/his profile?

Is there any control/feature/webpart I can add to trigger a functionality globally in any page on a Sharepoint? I now have a webpart on the homepage that checks if a user is due to update her/his ...
4
votes
1answer
4k views

The field with Id [GUID] defined in feature [GUID] was found in the current site collection or in a subsite

I have a farm solution with a single feature that has a bunch of site columns and a content type. The content type does inherit from Enterprise Wiki Page, but the feature has an activation dependency ...
4
votes
1answer
689 views

Deploying custom page into the pages library using a feature in SharePoint 2007?

I have a custom page and want deploy it into the pages library of the site using a feature in SharePoint 2007. Whenever the activated the page should added into the pages library and should removed on ...
4
votes
2answers
2k views

Remove list instances upon feature deactivation

I have a feature put together in Visual Studio 2010 that creates 3 external list instances. These get created just fine when the feature is activated, but upon deactivation they remain on the ...
4
votes
1answer
144 views

How to create a feature from aspx pages customized in SharePoint and SharePoint Designer?

I've created some Lists and Custom Views/Pages (aspx) using the web-interface from SharePoint and SharePoint Designer. What steps do I need to take to create a Feature which contains all the Lists ...
4
votes
1answer
277 views

Farm scope Event Receiver

For some security reasons on one of our farm level solutions, we need to limit some actions using Event Receiver-FileMoving event. However, as known, event receivers can be deployed only by Site or ...
4
votes
1answer
99 views

Adding new site column to existing content type on multi language sites

I'm using the declarative SharePoint feature upgrade approach to : 1. Add a new custom column to site columns gallery 2. Add the new custom column to an existing content type There are two variation ...
4
votes
1answer
158 views

Feature Scope Problem

I am having an heck of a time trying to get two separately scoped solutions to work together. The first solution is scoped for Farm and does nothing more than add a custom SPDiagnosticService. When ...
4
votes
1answer
2k views

Why won't my site column deploy from an elements file?

See Can site columns be deployed in sandboxed solutions? for background on this. I've tried to reproduce the sandboxed feature with a site column as built by Hilton Giesenow shown on How Do I: Create ...
4
votes
2answers
900 views

Unable to add selected webpart(s) [closed]

I've created a Custom List ('Tooltips') in SharePoint. After this I used SPSource to reverse engineer the list into a feature. After installing and activating this feature, I want to add this list in ...
3
votes
3answers
2k views

Unable to modify SPWebApplication properties from feature receiver - Access Denied

The scope of the feature is Web. SPWeb site = (SPWeb)properties.Feature.Parent; site.AllowUnsafeUpdates = true; // Set the Web Application's default error page SPSite siteCollection = new ...
3
votes
3answers
8k views

Access Denied when trying to activate a feature

I am trying to activate a sharepoint feature in 2010. When I try to activate it I reaceive the "Access Denied" error message. I am an admin on the server and a site admin on the site I'm trying to ...
3
votes
2answers
1k views

Convert SharePoint 2007 features in VS2010 feature designer

Does anybody have experience moving SharePoint 2007 features from VS2008 to VS2010 using the new feature designer? I currently have a C# class library project that has a "12" folder with a bunch of ...
3
votes
1answer
2k views

Deploying a custom page under the Layout folder using a Feature

I have customized the "EditProfile.aspx" page and want to deploy it on the QA using a Feature, is it possible to deploy a page under the "_Layouts" folder using feature. Tried with the below Feature ...
3
votes
3answers
3k views

Activating Publishing Feature breaks because of custom Master?

This issue is related to this post. I get an error message when the publishing feature is activated on sites of certain types. This means that I also get an error message when I create certain sites ...
3
votes
1answer
3k views

Adding Features during Solution Update

Is there a supported method to add features during a solution update. We call Update-SPSolution and then upgrade our old features using SPFeature.Upgrade but any new features in the solution do not ...
3
votes
1answer
1k views

Changing SharePoint 2010 Feature name and installation directory after deployment

I need to change the name and installation directory of some features that are already deployed in a client's environment. I can change the feature name from the feature designer, and change the ...
3
votes
2answers
356 views

Can't make a new instance of a custom document library

I am following the instructions of Cory Roth on how to create a custom document library in 2010 which can be found here ...
3
votes
3answers
1k views

Moving BDC models from server to server

I have created a BDC model and deploy it through a feature. The feature has to have a SiteUrl as specified in the feature xml below. However when I move the feature from say the development to test, ...
3
votes
1answer
55 views

Adding files to a deployed feature

How do you add new files to a feature that have been deployed? Are there any gotcha's that you need to worry about?
3
votes
1answer
255 views

SharePoint feature deployment and scope via PowerShell

We use SP2013 and PowerShell to deploy wsps. When installing the wsp via PowerShell: CASE 1: Add-SPSolution -LiteralPath $path install-spsolution -Identity $solution -GACDeployment Above ...
3
votes
2answers
411 views

Publish contenttype after activating feature (Office 365)

I've created a Contenttype and some fields in a visual studio project. They are deployed when activating the "Content types"-feature. But here's the problem: I want them to be deployed to the Content ...
3
votes
1answer
1k views

How to hide a ribbon tab?

I would like to remove a custom tab on the ribbon. Is this possible with HideCustomAction? I have attempted using HideCustomAction with the location and HideActionId set for the desired tab to be ...
3
votes
1answer
655 views

Error deploying WSP package

Error: Cannot find this file specified in the manifest file: ChangeContentTypeEventHandler.dll I'm getting this error when attempting to deploy this solution to the Sharepoint environment. Here is ...
3
votes
1answer
486 views

Deploy an image in a feature

I am creating a feature which adds an option to the ECB. I want to have a custom icon/image. In my Visual Studio 2010 project I have created a TEMPLATE/IMAGES/proj folders. I have added my image to ...