Ishai Sagi, my colleague and now a well deserved SharePoint MVP build a very useful and extend-able SharePoint 2007 utility some months back, appropriately named the SharePoint Tips Utility Pack 

Today I spent a couple of hours to enhance the utility pack by adding the ‘Site Custom Properties’ module. This new feature allows adding, updating and removing associated properties within a web. 

Here is a glory shot of the new module: 

 Custom Properties Module.

You can download the latest copy and even contribute to the project at CodePlex at (note it’s a work in progress) : http://www.codeplex.com/spstipsUtilityPack 

 A coding point to remember will be the bizarre web property removal behaviour:

Code like this:

Web.Properties.Remove(Key) ;
Web.Properites.Update();

won’t work as expected, instead I used something like

Web.Properties[Key] = null; 
Web.Properites.Update();

Advertisements