Two excellent resources for ramping up on SharePoint 2007 event receivers.
http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx
http://www.davehunter.co.uk/Blog/Lists/Posts/Post.aspx?ID=69
There is a more efficient way to do content type IDS than we have done in the past: http://msdn2.microsoft.com/en-us/library/aa543822.aspx
Say we wanted to inherit from “Page”, our content type used to look something this (I’ve split up the lines so it will display properly):
0×010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900
188024C0FF7F45CFB85EBB43980DACF5
Meaning, inherit from “Page” (the red part), include a delimiter (00), and then [...]
Ok, the title is vague, but there’s only so much I can put in a title, right?
As per MSDN’s documentation for the Microsoft.SharePoint.WebPartPages class and Andrew’s post on v3 web parts, we should now inherit from System.Web.UI.WebControls.WebParts.WebPart when we are building custom web parts, except in the four scenarios he mentions (repeating here for [...]
The PortalSiteMapProvider class is the base provider used by the four default “CMS” SiteMapProviders:
GlobalNavSiteMapProvider
CombinedNavSiteMapProvider
CurrentNavSiteMapProvider
CurrentNavSiteMapProviderNoEncode
That is, all of these SiteMapProviders use the same base code to generate a data source, but their “output” differs slightly due to the different attributes that are applied.
Recently, we wanted to filter out the pages from showing up in our left-navigation. [...]
Argh, Sezai beat me to this post about SPFormContext and SPControlMode by a few hours! I have to admit my sentiment is the same as his - I’m super stoked to have found this class.
Oftentimes, we need some code to execute, but only in the “published” state (old MCMS terminology). We might want a component to run certain [...]
We had a discussion amongst the developers in our group recently: what is an SPSite, what is an SPWeb, and what is the difference? Which once should I work with in my code? Looking at MSDN for the SPSite class, we see this description:
SPSite Represents a collection of sites on a virtual server, including a [...]