Tagged Questions
1
vote
1answer
12 views
Apply element manifest without re-activating feature
I have a feature module which consists of an XML file which adds ConsoleNodes to the Site Actions menu. To test it, it seems I must compile the package, deploy it, activate it, etc. Since this is ...
2
votes
1answer
107 views
SPListCollection.EnsureSitePagesLibrary() throwing SPException (specified title already exists in this Web site)
I am attempting to call SPListCollection.EnsureSitePagesLibrary() upon FeatureActivated. The method is throwing the following exception:
Microsoft.SharePoint.SPException: A list, survey, ...
0
votes
1answer
76 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
406 views
Where to Place XML File to be Read by Web Part?
In another question, I finally found a way to deploy the XML file to be read via a Feature, to the _layouts folder:
Feature Elements File
Should I be deploying it there at all? I wasn't able to ...
0
votes
1answer
289 views
Modify the content of the home page programmatically in SharePoint 2010
First of all, I'm pretty new to SharePoint so don't shoot me if this is a noobish question or if I don't provide all the right information at once... :)
I have a team-site in SharePoint with ...
0
votes
2answers
1k views
Adding multiple controls to AdditionalPageHead
My question is regarding the delegate control AdditionalPageHead, as we know it allows multple controls to be loaded.
My questions are:
How to add multiple controls?
I want that the different ...
0
votes
1answer
132 views
ContentType.FieldLinks.Add() issue with hidden and required
I have a feature that does the following in the feature activation Code :
Creates a new SiteColumn (Type=Text, Hidden=False and Required =True)
Set the french version of the Name (using ...
0
votes
0answers
24 views
Custom delegate is applied even if the feature is deactivated
I have a question regarding a feature.
Situation:
I have a feature that is farm scoped, with this feature I deploy a delegate control (xml file), this file refers to cs code.
So I've added that file ...
0
votes
2answers
892 views
Finding all activated Site Features & Site Collection Features in a Site Collection Script
I wonder if someone knows any C# script that will provide me all Site Features in a site collection as well as all Site collection features in a site collection.
I only required Activated features ...
0
votes
1answer
15 views
Site Features in Sub Webs Confusion
Very Basic but confusing question.
I see we have three types of features,
Web Application Features
Site Collection Features
Site Features
Now I know that Web application features belong to web ...
0
votes
1answer
172 views
Adding column to a SPList
Normally I create a New List if I want to add an additional column to a List that already exists in a web.
Wondering what would be the best option, should I create a new list with additional column ...
2
votes
0answers
302 views
Setting an audience from declarative WebPart?
I have a module that deploys some page.
I'm adding webparts to these page, using a <AllUsersWebPart> node within a <View>:
<View WebPartZoneID="Body"
WebPartOrder="5"
...
1
vote
1answer
64 views
Including a WorkFlow in a WSP
I am creating a feature that I want to install a couple of workflows when activated and bind them to a list. Is there a way you can use SPD and then export your workflow to include them in your visaul ...
0
votes
1answer
30 views
How to replace a Default List “Events” with a new custom list for all the sites
I am trying to find a script that will replace Sharepoint Events List with one of Custom List i created + Copy all the data of Events list to my newly created list.
I know how to Delete a list and ...
1
vote
2answers
45 views
Customizing a feature: Site Options? Config List? Something else?
I'm developing a feature that renders a link on the user's screen, and I need that link's destination URL to be configurable by site collection administrators (SCAs) who are not developers.
Where ...
2
votes
3answers
420 views
Feature with scope Web only on RootWeb
I have just a small Question:
Can I tell a feature with scope "Web" only to be activated on the RootWeb in Feature.Template.xml?
Something like
RootWebOnly="TRUE"
I have a listInstance ...
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?
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
358 views
Supplemental .config File
I wish to make a change to the web.config file. I know you can do this by using a supplemental config file. I know that the file needs to be coppied to %ProgramFiles%\Common Files\Microsoft Shared\web ...
1
vote
1answer
293 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/">
...
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 ...
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 ...
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
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 ...
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 ...
0
votes
3answers
317 views
Create field definition with a type equal to Lookup (Count Related)
Reading over this link: http://blogs.msdn.com/b/jackiebo/archive/2007/02/23/lookup-count-related-the-magic-behind-sharepoint-s-comments-column.aspx
I've decided I want to add this to a feature ...
0
votes
1answer
554 views
How do I get an SPFolder from the UniqueID?
I have the Unique ID for an SPFolder object. I also have the SiteID that it is located at. How can I (in C# from a SharePoint feature) get this item starting from the Site? Is there a way to do it ...

