set of functionality that can be turned on at a particular scope level
19
votes
6answers
3k 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 ...
16
votes
3answers
907 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 ...
14
votes
1answer
2k 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
3answers
3k 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 ...
6
votes
1answer
3k 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
254 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 ...
5
votes
3answers
1k 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
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 ...
5
votes
4answers
1k 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
133 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
3answers
4k 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
5answers
1k 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
509 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
1answer
669 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
4answers
545 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
1answer
83 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
1answer
55 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
499 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
1k 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
141 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
2k 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
132 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
1k 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 ...
3
votes
4answers
6k 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) ...
3
votes
3answers
1k 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
4answers
542 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 ...
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
1k 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
2k 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
2answers
5k 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
1answer
2k 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
2answers
280 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
1answer
463 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 ...
3
votes
2answers
777 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
2answers
5k 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 ...
3
votes
2answers
2k 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;
...
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
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
485 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
335 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 ...
3
votes
1answer
171 views
Site Scope Feature dependent on a Web Scope Feature
On the root web for my site collection I need to make sure a web scope feature is turned on. In the feature EventReceiver I can turn on the feature progamtically. How can I stop the user turning the ...
3
votes
1answer
536 views
Sandbox Web Part without Site Collection Administrator permissions?
Is there a way to get a Sandboxed Web Part deployed without Site Collection Administrator permissions? Here is the situation:
I have Full Control permissions of the Site Collection's Root Web, ...
3
votes
2answers
451 views
How to deploy custom theme + css + masterpage and apply it automatically to every newly created Team site
Greetings...
Well, the title pretty much says it all. Users will be able to create numerous new team sites, and I need to make sure that custom theme and css are automatically applied. Also, I need ...
3
votes
2answers
899 views
Possible to have Infopath form deployed in a feature? SP2010/VS2010
I'm using new VS2010 Sharepoint Project. I can add a site column, content type, list definition without any problem.
Is it possible to also have an InfoPath form included in a Feature?
I want to be ...
3
votes
2answers
454 views
Documents opening in Office Web Applications (when they're not installed)
I have a farm where for every new site collection the "Open Documents in Client Applications by Default" feature is disabled. So when ever a user opens an excel or word file it will try and open it in ...
3
votes
3answers
1k views
How to efficiently deploy content types to a Content Type Hub
I have set up a Content Type Hub and tested the syndication is working correctly by creating a test content type and watching it be published to the client site.
Then I deployed the content types I ...
3
votes
2answers
779 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 ...
2
votes
1answer
2k views
Does Update-SPSolution trigger a SPFeature.Upgrade()?
I'm looking into Feature versioning and upgrading in SharePoint 2010 and I don't know exactly if the Update-SPSolution cmdlet triggers a SPFeature.Upgrade().
Are <UpgradeActions> elements ...
2
votes
1answer
4k 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.
2
votes
3answers
247 views
Sharepoint feature still running after being uninstalled, files removed, IIS restarted
I had created a feature that changes the content type of a folder when it is created, which works fine. However, I wanted to make a change to it by adding another folder for it to work in but after ...
