April, 2011
18 04 2011
So you’ve embarked on writing a bit of code that must enumerate a SharePoint List’s Items one by one and do some stuff with them. You’ve (at some point) came across the Best Practices page on MSDN on Handling Large Folders and Lists, and seen that using SPList.Items is bad. It’s bad because you could […]
6 04 2011
In a Site-Scoped Feature, have this line in the Elements.xml:
|
<featuresitetemplateassociation templatename="STS#0"></featuresitetemplateassociation><br> |
The Id here is the GUID of a Web-Scoped Feature you want to activate every time a Sub-Web of template STS#0 (Team Site) is created. Simples.
4 04 2011
Here’s a straight forward one. For some reason (don’t ask) I had to update a content type in a Feature Receiver (I would have preferred to have created a new content type and inherit) by adding a new field to it. Here’s the code, purely for my personal reference but open in case other people […]
2 04 2011
We’re working on a large(ish) project right now in SharePoint 2007 that will quite soon be migrating to SharePoint 2010, so I decided to take the WSPs we’ve had so far (that work fine in 2007) and see how well they’d work in 2010, either as Farm solutions or User (Sandbox) solutions. I came across […]