Author Archive

LINQ to SharePoint – Obscure Workarounds

October 1 2010 199 comments

Previously I wrote about querying with SPLinq and the scope being the current site collection when running code in SharePoint. I’ve also written about using Ajax panel in web parts editor part (this post is slightly edited to serve this one). I’m going to take these two posts as basis for this post where I will…

Read more »

LINQ to SharePoint – Scope is Site Collection

September 15 2010 9 comments

We made a discovery earlier this year when starting to develop our first customer projects on SharePoint 2010 that the DataContext does not extend over multiple site collections in SharePoint context, while it does so out of the mentioned context. This means you can’t develop customizations on SharePoint 2010 using LINQ to SharePoint over

Read more »

SharePoint 2010 – Setting DefaultPageLayout Programmatically

July 1 2010 38 comments

PublishingWeb has a DefaultPageLayout-property which contains information of the page layout to use when you select New Page from Site Actions. The property is readonly as you can see from msdn.

However – PublishingWeb has a method SetDefaultPageLayout which gives you the way to change the default page layout programmatically. Definition is found from

Read more »

SharePoint 2010 – Ajax Panel in Web Part’s Editor Part

June 28 2010 12 comments

Have you ever wanted to have conditional property setting possibilities in your custom web parts? I have. The scenario has been that I would have wanted to render a control to web part property setting based on some other property selection – i.e. if user selects something from web part’s properties, something else would emerge to be selected from…

Read more »

Three Cases of List Manipulations in Recent Real Life Cases

February 12 2010 3 comments

Case 1: AllowDeletion

There might be a case where you have custom document libraries in your SharePoint-solution bound to a customer specific custom content type. It might be confusing for the customer to have the default libraries, which come when the Office SharePoint Server Publishing feature has been activated.

“Some user will at some point inevitably put…

Read more »
Page 2 of 212