Archive for the “Development and Customization” Category

Web Designer Friendly Web Parts, Take 2

April 12 2010 4 comments

We discussed an approach for creating Web Parts backed by a single user control in a previous post. While the approach works, it’s not quite perfect yet.

First, it requires repeating a bunch of boilerplate code that should be neatly abstracted away, if possible. Second, the part where the user control…

Read more »

How to Extend SharePoint 2007 with .NET 3.5

April 6 2010 5 comments

There are several solutions in web that deal with this problem, but they all seem to point you to use SPWebConfigModification (like in here and here) or are just giving manual editing instructions (like in here). We feel that this is all too complex and repetitive process. There is fortunately “a better” way to…

Read more »

Using Event Receiver to Set Default Values for Publishing Pages

March 29 2010 17 comments

While ago I posted something very similar to this. Here

Here’s yet another solution, and way better and faster to implement.
First create web scoped feature, that adds ItemAdded event receiver to Pages library (should’t be a task). In the ItemAdded method, set the default values which are defined in the ContentType, to each field in the…

Read more »

Using Control Adapter to Set Default Values for Publishing Pages

February 24 2010 71 comments

Developers, who use customized page layouts bound with custom content type, have probably realized that if your custom content type is not the default content type of Pages library, you will not get default values populated when you create a new page. One way to work around this is to create feature, which sets your customized content type to be…

Read more »

CAML and Querying Boolean Fields

February 22 2010 20 comments

Today I had some trouble trying to filter out items by a field of type Boolean. I have a custom content type definition which has a FieldRef to a Field:

  <Field
   Type="Boolean"
   DisplayName="IsHeadlineDisplayName"
   Description="IsHeadlineDescription"
   Required="TRUE"
 

Read more »

Content Queries Using SharePoint Enterprise Search API

February 15 2010 36 comments

In an earlier post to SharePoint Blues Juho wrote about the challenge of – how to find anything from the sea of content. One way of solving this issue is to use SharePoint Enterprise Search API and the FullTextSqlQuery class. This class allows you to query SharePoint content using SQL syntax. FullTextSqlQuery queries always query from SCOPE(). In…

Read more »
Page 5 of 6« First...23456