set of functionality that can be turned on at a particular scope level
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) ...
12
votes
3answers
4k 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 ...
20
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 ...
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 ...
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 ...
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 ...
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 ...
2
votes
1answer
120 views
Using solutions and features in creation/branding of SharePoint websites
I am new to SharePoint website creation and branding and I need your advice.
For my first SharePoint site I have done the following:
1- Created/edited a master page.
2- Added CSS and JavaScript ...
1
vote
1answer
2k views
SharePoint Feature - adding reference dll in package?
I have a feature which is referencing a custom library. How can I include this dll in the SharePoint 2010 package so that it is registered in the gac?
0
votes
1answer
514 views
Problem with defining Site Columns in a feature
Why the titles are blank (for example, I go to setting, site columns and select the group. I see all four columns but their title are missing. like, pobox, firstclassdate, deliverytype, carrier) for ...
16
votes
3answers
915 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 ...
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!
3
votes
1answer
466 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
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
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
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;
...
5
votes
1answer
672 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
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
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 ...
2
votes
1answer
580 views
Specifying advanced webpart properties on a view in a custom module?
I'm deploying a web part page from a feature. In the module/file node, I defines a view to a specific list in the site :
<Module Name="SitePages"
Url="SitePages"
...
2
votes
2answers
397 views
Caml defined Custom Action, UrlAction and the multi language interface
When defining a custom action via the CAML schema definition, the UrlAction parameter specifies the "site or site collection relative URL of the page, for example, ~site/_layouts/sampleurl.aspx or ...
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
2answers
570 views
Error activating feature
I have created a solution package for Sharepoint 2007 and have installed and deployed it on a development server. However, when I go to activate it through Site Features, I'm given a lovely page of ...
2
votes
2answers
712 views
Can't activate Publishing Feature
On some sites I get the following error when trying to activate the publishing feature.
Event log message was: 'Failed to initialize some site properties for Web at Url: 'http://intranet/social'. ...
2
votes
2answers
621 views
Create Site Column (lookup type)
Is there any solid (proven) method of creating Site columns (lookups) where list GUID is not known?
I think this is where feature activation kicks in; getting the lookup list by its name and then ...
1
vote
1answer
304 views
Access Document ID from a different Site Collection
I have the Document ID Service feature enabled in a Site Collection. I have a Records Center site provisioned in a different Site Collection - within the same web application. If I create a document ...
1
vote
2answers
375 views
Schema.XML not found in 12/Template/Features/myfeature
I am trying to create a custom list feature, what I did is created feature and then i build a solution out of it using this tutorial
Creating a Solution file for Feature
when it creates a .wsp ...
1
vote
1answer
307 views
Changing directory name of features in SharePoint 14 Hive - Impact on already deployed features?
I'm moving from a WSPBuilder based SharePoint 2010 solution to a Visual Studio 2010 based solution. After porting the WSPBuilder based solution to a plain Visual Studio based solution I tried to ...
0
votes
1answer
84 views
TimerJob error missing public constructor
I have an issue on my SharePoint 2007 portal, where i created a custom TimerJob, but when I deploy it i get a message:
MyTimerJob cannot be deserialized because it does not have a
public default ...
0
votes
1answer
528 views
Feature Elements File
I'm having some difficulty creating a Feature which contains a Web Part and a links.xml which is processed by the WP code-behind. My difficulty is in understanding the Feature XML config files and ...
0
votes
1answer
236 views
Updating Page Layouts created with SharePoint Designer
The system I'm working on is a Publishing site that has page layouts created with SharePoint Designer. Users have created content pages based on these page layouts.
I want to update the page layouts ...

