Category Archives: SharePoint 2010

Create a notification banner on top of every page in a SharePoint 2010 site collection using delegate control

We wanted to create a notification banner on top of every page in a SharePoint 2010 site collection like this: You could modify the master page for each site but that very cumbersome. So we will use the “Delegate Control” … Continue reading

Posted in SharePoint 2010, Visual Studio 2010 | Leave a comment

How to Recover A Single Document In SharePoint

How to Recover A Single Document In SharePoint How to Recover A Single Document In SharePoint Once upon a time at a customer site (August of last year, in fact), one of the users made some changes to an Excel … Continue reading

Posted in SharePoint 2010, Uncategorized | Leave a comment

Create a cross-site lookup field using PowerShell

Sometimes you need to create a lookup field to look up a list in another site (not the parent site). This is how  you can do it using PowerShell: On SharePoint server, run PowerShell as admin: Add-PsSnapin Microsoft.SharePoint.PowerShell $targetWeb = … Continue reading

Posted in PowerShell, SharePoint 2010 | Leave a comment

Pass query string to an InfoPath form

There is a infoPath form on a page (URL: “http://www.yoursharepoint.com/xxxx/xxxx.aspx?viewing=1”). We want to pass the value of “viewing” to the infoPath form. Create a new column “viewing” in the list; make sure the column is in the infoPath form (to … Continue reading

Posted in InfoPath 2010, SharePoint 2010, Uncategorized | Leave a comment

Default Server Ribbon Customization Locations

Reference: https://msdn.microsoft.com/en-us/library/office/ee537543%28v=office.14%29.aspx SharePoint 2010 Last modified: April 05, 2011 Applies to: SharePoint Foundation 2010 The Server ribbon in Microsoft SharePoint Foundation supports customization of the default tabs, groups, and controls. In order to customize these objects, you need the specific … Continue reading

Posted in SharePoint 2010, Visual Studio 2010 | Leave a comment

SharePoint: RegistrationId List Template Type IDs

Reference: http://techtrainingnotes.blogspot.com.au/2008/01/sharepoint-registrationid-list-template.html Below is a list of RegistrationIDs for use with API code and CustomAction Features (for user created list types) and any other list types I have found. In this article you will find: A table of all of … Continue reading

Posted in SharePoint 2010, Visual Studio 2010 | Leave a comment

Create Custom Ribbon Actions in Visual Studio

This example creates an “Email to Someone” custom action in the Ribbon of lists and libraries. Create a new SharePoint empty project (Sandbox solution); Add a new item >> Empty Element; Sample code for Elements.xml <?xml version=”1.0″ encoding=”utf-8″ ?> <Elements … Continue reading

Posted in SharePoint 2010, Visual Studio 2010 | Leave a comment