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

learn more… | top users | synonyms

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 ...
6
votes
4answers
335 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
2answers
3k 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
1k 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 ...
4
votes
1answer
4k 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, ...
4
votes
1answer
137 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
3k views

adding link to suite bar in sharepoint 2013

I have followed the following liks to add custom links to sharepoint 2013 suite bar. http://blogs.msdn.com/b/findnavish/archive/2013/02/07/sharepoint-2013-customizing-suite-bar.aspx ...
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 ...
3
votes
1answer
7k 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 ...
3
votes
3answers
966 views

How to create web-related lookup field to 'pages' list?

I have SharePoint site collection 'http://microsoft.com/' with few child webs ex: http://microsoft.com/news/ I want to create lookup field to 'Pages' list. On each child web lookup field should ...
3
votes
2answers
4k 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 ...
3
votes
3answers
2k views

Can't rename “Title” field in List Definition

I can't rename "Title" field to "Unit Type" Here is my Schema.xml: <?xml version="1.0" encoding="utf-8"?> <List xmlns:ows="Microsoft SharePoint" Title="PrCenter - StatisticsDef" ...
3
votes
2answers
1k 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> ...
3
votes
2answers
2k views

How do I use QueryOverride in CQWP when deploying web part instance using Elements.xml?

I need to use the CQWP with more than three filters, hence I'm going to use the QueryOverride with a CAML query like described here. I can't get this to work when deploying the web part instance using ...
3
votes
1answer
402 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
600 views

'RootWebOnly' property of a CustomAction only works in sandboxed solutions? Why?

I have a web application scoped feature which provisions a number of site collections and subsites. The feature also contains a navigation element, which adds a new custom action group to the site ...
2
votes
2answers
6k 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 ...
2
votes
2answers
820 views

What does the “Overwrite” attribute in a site column definition actually do

I'am deploying some site columns, content types and lists to my site via CAML definition. This works as expected. However, I faced problems with re-using site columns that reference my lists. My site ...
2
votes
1answer
38 views

Programmatically setting HtmlDesignAssociated value

I'm deploying a composed look from the server (including the .spcolor, .spfont, master.html and master.preview files), but I cannot get the field Associated File to select. I've tried setting it in ...
2
votes
1answer
127 views

How to show XML weather in sharepoint?

I'm quite a newbie with sharepoint and especially in XML. I would like to show this weather info in my Sharepoint. I'm using XML web part & XSLT formatting. ...
1
vote
1answer
1k 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
479 views

Using JavaScript file in Elements.xml

I am trying to create a custom ribbon and in my project I have created a JavaScript file. From this and this question I was able to figure out that I can use <CustomAction> tag to import the ...
1
vote
3answers
3k views

Current user in field

Can I set the default user in a user field to the current user -> [Me]? How is it done? The xml I already have is: <Field ID="{F117832D-E722-460C-A083-162C55B701F9}" Type="User" ...
1
vote
1answer
340 views

Set Web Part Recommendation Settings in elements.xml or .webpart file

Is it possible to set the Recommendation Settings of a WebPart in the elements.xml or .webpart file? Just like you can do with Group, Title and Description...
1
vote
1answer
1k 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, ...
1
vote
1answer
208 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> ...
1
vote
1answer
105 views

Custom form for Content Type is being ignored

There seems to be a bunch of ways to add custom forms to list and libraries but the easiest way seems to be to specify it in the Elements.xml file that defines a given ContentType. (If this ...
1
vote
2answers
207 views

uncheck the checkbox for overwriting a document by default in sharepoint 2013

We are trying to remove the checkbox which appears when uploading a new document in SharePoint (we are using 2013). By default this is checked. We would like it to be unchecked by default. I have ...
1
vote
3answers
841 views

Define contenttype with list

I have defined my list definition as following: <List xmlns:ows="Microsoft SharePoint" Title="Requests List Definition" FolderCreation="FALSE" Direction="$Resources:Direction;" ...
1
vote
1answer
498 views

Publishing field type names for feature

I'm creating a SharePoint 2010 feature in VS 2010 to add some custom site columns to a site collection via an elements.xml file. I can't seem to find the Type attribute values for the publishing ...
1
vote
2answers
500 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 ...
1
vote
2answers
2k 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 ...
1
vote
0answers
64 views

Deploy custom newform for custom list using wsp for SharePoint Online

I have a custom list which inherits 2 custom content types. Each content type contains around 50 odd fields. I have to customize the layout of the form and integrate jquery for the newform and ...
1
vote
0answers
83 views

Content Type Columns not showing for Image Library

I have created the following 2 Site Column Definitions and a Content Type that incorporates both of the site columns A List Definition of type Picture Library that utilizes the Content type. however ...
1
vote
0answers
97 views

SharePoint 2013 Promoted Links in Elements.xml?

Does anyone have a working example of an <AllUserWebPart> or <View> within an Elements.xml file that includes a "Promoted Links" web part on a page. I just can't seem to get my ...
1
vote
0answers
228 views

Config standard SiteUsers WebPart in SP2010

I´ve got a problem with a normal SiteUsers WebPart. Currently I have this code: <WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...
1
vote
2answers
390 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 ...
0
votes
4answers
245 views

Deploy event receiver without associating with any list

I have an event receiver I developed with Visual Studio that I want to deploy. But in this case I want to deploy it without associating it with any list. (I add the event receiver to a specific list ...
0
votes
1answer
47 views

Create Folder in List Definition with Elements.xml

I am creating list definitions.Now what I want to create some folder when We create Elements.xml for list definition. Thanks in advance
0
votes
1answer
748 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" ?> ...
0
votes
1answer
15 views

SP2013 Cannot create “_catalogs/masterpage”

I have created in my VS2013 solution a Masterpage module. The problem is that during feature activation I encounter a message 'Cannot create "_catalogs/masterpage', as if the feature was not being ...
0
votes
1answer
30 views

Ribbon button using autohosted app doesn't show up

I have created Empty Element in an autohosted App and tried this code for element.xml then uploaded & deployed it to Office 365 but nothing happened, Is there another step I should take? ...
0
votes
1answer
95 views

Is there a better way to edit Elements.xml while creating a custom ribbon?

I am creating my own custom ribbon button using this article as reference. My code in the file Elements.xml goes something like this: <CommandUIHandler Command="NewRibbonButtonCommand" ...
0
votes
1answer
191 views

How to reference/write the file path in Elements.xml for UserControl in Sandbox Solution?

I have 1 solution (which is deploying as SandBox Solution). I have added JavaScript files, Images, Application Page & UserControl in one Module under project folder. I have one Element.xml file ...
0
votes
3answers
834 views

SharePoint 2010 Deployment will not update Master pages because SPFile.CustomizedPageStatus is 'None'

We have the following scenario and are hoping someone can help: Original 2007 Publishing Site content database upgraded to 2010 Page templates in use have never been Ghosted because they were ...
0
votes
1answer
281 views

What is the SPListTemplateType or SPListTemplateId or ListUrl of ACL of an item?

What is the SPListTemplateType or SPListTemplateId or ListUrl of the list that appears when clicking on the item permission button on the edit control block or the button on the ribbon of any item ...