12

You need to move the list Url to your module definition: <Module Name="Style Library" Url="Style Library" RootWebOnly="true"> for GhostableInLibrary to work properly. You should of course then remove it from the File Url, since it is now defined on module level. If you have no Url in the Module tag you can only use type="Ghostable" on your File ...


5

All the ribbon definitions are stored in this file: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\GLOBAL\XML\CMDUI.XML Action JS code for most of these ribbon elements you can find here: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\SP.Ribbon.debug.js Actions for rich ...


5

You should have Type="GhostableInLibrary" attribute for your preview. I suppose MasterPages in your solution points to a document library. If you want to provision files from a module to a document library, ghostableinlibrary type must be used: Specifying GhostableInLibrary means the file will be added to a document library in SharePoint together with ...


4

Evgeny, If this is a lookup to the list it self (i.e. you want to select elements form the same list, like related news articles) you can set the list property to "self". <Field Name="LookupToPages" ID="{3B5B07A0-68DB-4BF6-AAAE-87B77CE430C6}" Type="LookupMulti" DisplayName="Related News" Group="Intranet.ContentTypes" ...


4

I totally agree that this is inconsistent and a bit misleading. Assuming that tranforming the solution to the Sandbox is a none starter, a few thoughts... You could maybe re-scope the feature to the Web (I'm assuming that it is currently the scoped at the Site) and the just activate it on the root web. That would probably raise another issue though as I ...


4

You need to wrap it inside the <Field> tag as below in the element.xml file. <Field ID="{060E50AC-E9C1-4D3C-B1F9-DE0BCAC300F6}" Name="EmailId" DisplayName="Email Id" Type="Text" Description ="Some desc" Required="TRUE" MaxLength="50" Group="SPFx Columns"></...


3

It seems that you are using wrong identifiers for the three fields Title, LinkTitle and LinkTitleNoMenu. The correct ones should be: Title --- fa564e0f-0c70-4ab9-b863-0177e6ddd247 LinkTitleNoMenu --- bc91a437-52e7-49e1-8c4e-4698904b2b6d LinkTitle --- 82642ec8-ef9b-478f-acf9-31f7d45fbc31 I have tried to search for the guid you are ...


3

You need to append 15 to _layouts i.e /_layouts/15 in order to get hold of the file as you are working on SP 2013. UPDATE Put the javascript file under CustomRibbonButton folder in your project and use /_layouts/15/CustomRibbonButton/JavaScript1.js. The hive folder for SharePoint 2013 is 15. It used to be 12 for MOSS and 14 for SP 2010. This needs to be ...


3

Modules are used to deploy files to SharePoint Content Database. They can't deploy a file to physical folder. When you add a mapped folder like layouts to SharePoint VS Projects, the files inside the mapped folder automatically get deployed to physical path.


2

Try this : <!-- Parent ContentType: Document (0x0101) --> <Field ID="{01854464-EABC-4726-A517-397A4EA224C2}" Name="dueDate" StaticName="dueDate" DisplayName="due Date" Description="dueDate" Group="MyDoc Content Types" Type="Calculated" Format="DateOnly" ResultType="DateTime" ReadOnly="TRUE" > <Formula>=DATE(YEAR(Created),MONTH(...


2

Copy the following XML into Feature's Elements.xml and try to play with params. The location is CommandUI.Ribbon.ListView <?xml version="1.0" encoding="utf-8"?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <CustomAction Id="ShowHelloWorldButton" RegistrationType="List" RegistrationId="100" Location="CommandUI.Ribbon....


2

Attaching event receiver could be one of the solution. If you need that the default values are set when the new item form opens, then you need javascript/jQuery on the New Item form. Also, even if there is no browser option for it, you can set the default value using C# code, here is what you can do for a User/Group field: using(SPSite site = new SPSite("...


2

I don't believe it's possible https://stackoverflow.com/questions/10343574/how-can-i-set-a-user-field-to-a-default-value-of-a-user-currently-logged-in-thro Another option could be to set it in a workflow


2

Site columns in content types is a great way to group several columns in a meaningful (and reusable) way, and then attach the content types to the list. Having said that, you can define all the site columns in one file (Say SiteColumns.xml) and user FieldRef to reference them in your content types (say ContentTypes.xml). You can always ensure to activate ...


2

You can specify QuickAddGroups in the Elements.xml like this: <File Type="GhostableInLibrary" Url="AuthoredListFilter.webpart"> <Property Name="Group" Value="$Resources:spscore,FiltersWebPartGroup;" /> <Property Name="QuickAddGroups" Value=";#Filters;#My Site: Middle Right;#My Site: Middle Left;#My Site: Bottom;#" /> </File>


2

I always have added custom links to the suite bar using a small jquery script on the page On SharePoint 2013 you can do that using this code <script type="text/javascript"> var suiteBar = $("#suiteBar").find(".ms-core-brandingText"); suite.html("<a href="www.google.com"> custum link </a>"); </script> If you are using Office 365 ...


2

You need to set the Inherits attribute to False and then manually include all of the columns.


2

There is another option how to add Event Receiver to a specific List - add the Event Receiver to the Content Type. Steps: Create custom Content Type for a List Add the Event Receiver to the Content Type Add Content Type to a specific List in order to register the Event Receiver In that case you will be able to control on which List an Event Receiver ...


2

Deploy the event receiver and do not activate the Feature.The elements file only attaches the event receiver to list when feature is activated. Attach the event receiver to list from your powershell afterwards.


2

Frustratingly simple - there must be a space between the delimiting comma the first character of the title. If no space the comma and title are concatenated with the link. <ListInstance ...> <Data> <Rows> <Row> <Field Name="URL">http://google.com, Project Link</Field> </Row> </Rows> &...


2

To setup the additional field from the lookup, you need to add a second lookup field pointing at the same list, but include the FieldRef attribute on the second lookup field. The value of this attribute should be the same as the ID attribute of the first lookup field. <Field ID="{5D184D01-082C-4831-8757-CA2C98F05221}" Name="Title" DisplayName="Title" ...


2

You could try wrapping it in CDATA tags <Data> <Rows> <Row> <Field Name='Title'>Configuration</Field> <Field Name='JSONData'><![CDATA[{ "URL":"https://example.com&Isdlg=1"}]]></Field> </Row> </Rows> </Data> or escaping the ampersand <Data> <Rows> ...


2

There seems to be some discrepancy. The error you are getting shows the Url as Lists/Risk Issue whereas the Url present in elements.xml file is Lists/Issue Manage. ListUrl attribute works for Web based scopes and hence it will fire the events in all lists present in subsites where the feature is activated. Finally ListUrl attribute is ignored if scope of ...


2

If you are having a xml text then use $.parseXML() to parse it to a xml object then use find() to locate the element. var mystring= "<?xml version="1.0"?> <catalog> <book id="bk101"> <author>Gambardella, Matthew</author> <title>XML Developer's Guide</title> <genre>Computer</genre> <...


2

I think the accepted answer you're pointing is not completely accurate. The question raised in that post is more probably "Why do all examples I see insert the fields twice?" instead of "Why do I need to insert the fields twice?". I think this is at least how the answerer understood it. The point is: you can insert them twice (i.e. redefine the fields at ...


2

As an alternative, since your code runs Client Side you can also use REST to create a List https://social.technet.microsoft.com/wiki/contents/articles/37608.sharepoint-online-create-and-delete-list-using-rest-api.aspx


1

Yeah, it is pretty common problem. No matter how you try to edit your code it will be difficult to read, debug, manage, and update, when it is written inside elements.xml. I know that question is about the editor itself, but sometimes it is much better to write your JavaScript code in another .js file, and use only reference in CommandAction. You can load ...


1

You could simply modify your system master page and add some javascript to the bottom of the page just above PlaceHolderFormDigest to set the "Overwrite existing files" checkbox to default to Unchecked. http://planet-sharepoint.blogspot.co.uk/2013/10/sharepoint-2010-set-overwrite-existing.html


1

The following code it's a sample that can be used to add html (or even .js references) on the suite bar on a web app scope. $wa = Get-SPWebApplication [WebAppUrl] $wa.SuiteBarBrandingElementHtml = "<div class='ms-core-brandingText'>SharePoint (custom html)</div>" $wa.Update()


1

There is an easy step no need to use powershell or visual studio follow these steps : Be sure that you have proper permission to edit share point Use share point designer to edit share point file go into master pages from left panel "INSIDE SHAREPOINT DESIGNER" right click on seattle.master then click on Edit file in Advance Mode "GET BACKUP IF YOU ARE NOT ...


Only top voted, non community-wiki answers of a minimum length are eligible