SharePoint: Purloining, Reusing and Customizing the ECB Menu System Part 1


In this series; Purloining, Reusing and Customizing the ECB Menu System Part 1 Purloining, Reusing and Customizing the ECB Menu System Part 2 This series by Jan Tielens on customizing the ECB with Javascript is useful reading in conjunction with this post. Part 1 Part 2 Part 3 This post was supposed to be about … Continue reading SharePoint: Purloining, Reusing and Customizing the ECB Menu System Part 1

SharePoint: Problem with Office 2007 Document Information Panel and Lookup Columns


This post describes an issue with the Office 2007 document information panel displaying properties for Lookup type columns in SharePoint, where those Lookup type columns were created programmatically via a feature receiver. You have a document item in a document library, with a Lookup type column configured to reference a target list in the site collection. … Continue reading SharePoint: Problem with Office 2007 Document Information Panel and Lookup Columns

SharePoint: Mapping Document File Extensions to Document Images


Mapping document file extensions to their corresponding image file names can be done quite easily using the XSLT extension functions found in the DDWRT namespace, namely the MapToIcon function. The DDWRT namespace maps to the DdwRuntime class found in Microsoft.SharePoint.dll in the Microsoft.SharePoint.WebPartPages namespace. Incidently, the reference for the functions found in the DDWRT namespace can be found here. … Continue reading SharePoint: Mapping Document File Extensions to Document Images

SharePoint: Using the CONTAINS Predicate with FullTextSqlQuery


The FullTextSqlQuery class is part of the Enterprise Search Query Object Model and is used to perform content queries using (amongst other things) managed properties and search scopes. This functionality is used by the OOTB search components, but obviously you can use it for your own purposes too, and when doing so you will need … Continue reading SharePoint: Using the CONTAINS Predicate with FullTextSqlQuery

SharePoint: Checking Arbitrary User Permissions and why SPListItem.DoesUserHavePermissions is a Big Fat Dirty Liar


To clarify, the object model method isn’t a big fat dirty liar, but the documentation certainly is. This blog post is about checking permissions of arbitrary users against SharePoint objects which expose the ISecurableObject (this interface is marked obsolete in 2010 in favour of the new SPSecurableObject class) interface using the overloaded DoesUserHavePermissions method of; SPListItem.DoesUserHavePermissions(SPUser … Continue reading SharePoint: Checking Arbitrary User Permissions and why SPListItem.DoesUserHavePermissions is a Big Fat Dirty Liar