An XML element is everything from (including) the element's start tag to (including) the element's end tag.

learn more… | top users | synonyms

1
vote
2answers
494 views

Elements.xml Id substitution

I have a site column defined in an Elements.xml file in Visual Studio. The SharePoint project this is in does all sorts of initial configuration on the website. I need to set the UserSelectionScope to ...
7
votes
1answer
7k views

Error when deploying module with GhostableInLibrary files

Here is the module which I want to deploy on the server and the files which should be shown in the Style Library, when deploying them without type ghostale in library, all go good and well, no errors, ...
5
votes
2answers
4k views

Location of Ribbon XML for List View

I'm looking for the location of SharePoint ribbon XML for List Views. I'm just curious to see how Microsoft has coded it. However, I don't know the location of the xml file. Could someone put me in ...
4
votes
3answers
2k views

What are 'Property Bags'?

They show in elements.xml files sometimes. What do they consist of? What scope do they live on? (Farm, Site, Web, or something different?) How do they interact with the rest of Sharepoint? What are ...
3
votes
2answers
8k views

How can I provision a list with a calculated field?

I am trying to create some fields, a content type, a list definition and a list instance in Visual Studio. All of my fields are working, showing up in the list etc. except for calculated fields. What ...
0
votes
1answer
891 views

How can I modify a list property from a custom action using the client object model?

My task is to process selected items of some list. Can I change some field value from the client object model ? I found some solution like this: <?xml version="1.0" encoding="utf-8" ?> ...
2
votes
2answers
9k views

Sharepoint 2010: How to set default value for a lookup column (without InfoPath forms)

How can I set default value for a lookup column (when we adding new item)? For lists creating I am using site columns and site content types in elements.xml. I can set default value for text or date ...
1
vote
1answer
2k views

Reference a javascript script in a ribbon custom action xml

Reference a .js file on a spribbon custom action elements.xml on my javascriptmethods.js file: function test(){ alert('test message.');} on my custom action elements.xml: <CustomAction ...
1
vote
1answer
2k views

How to resolve “A duplicate contenet type name…” error for project with custom content types?

I have a project that I have been using to deploy a custom content type. Recently i decided that I needed another content type that would inherit from the original one. I created a new element file, ...
3
votes
2answers
2k views

Ribbon fails: Ribbon <Tab> node must have a <Scaling> subnode

I am in big trouble. I have created two ribbons and both doesn't work. I allways get the following failure message: System.ArgumentException: Ribbon <Tab> node must have a <Scaling> ...
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
605 views

Set a date/lookup in ListInstance elements.xml

I have two lists. The first one has customers and the second one has Orders. Now i want to add some (test) data in the elements.xml of the listinstances. For customers this works without a problem ...
1
vote
2answers
616 views

Set ContentType Mandatory FieldRef

I have the following ContentType Elements.xml file in a visual studio project. I need the ArticleStartDate to be mandatory/required. When the deployment happens the field is not required. I can't ...
3
votes
1answer
10k views

Custom list definition - fields in Elements.xml and Schema.xml

I'm creating a custom list definition in SharePoint 2010 by following this article. The tutorial is OK and it works. There is a thing that I don't understand though. Why do I need to insert the ...
1
vote
2answers
3k views

Can't change title field display name

I'm using visual studio to develop custom content type, which uses Element as base content type. I'd like to change title field's display name, by doing so: <FieldRef ...
2
votes
1answer
2k views

How to add Two java script file in element .xml

I am using 2 button in custom tab and each button has a .js file to load . Could you please say me how to use 2 .js file in the same element .xml and here is my code for element xml <?xml ...
7
votes
4answers
393 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 ...
1
vote
1answer
216 views

Adding links in the CEWP

The following code is adding extra %22 after the aspx which cause link to fail. XmlElement p = new XmlDocument().CreateElement("p"); p.InnerText = @"<table style=""width: 100%""><tbody> ...
6
votes
3answers
3k views

Multiple values of RegistrationId attribute in CustomAction tag

I wonder is there any ability to set not only one but multiple values of RegistrationId in CustomAction tag. I have an elements.xml entry like this: <CustomAction ...