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 »
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 »
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 »
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 »
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 »
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 »