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
I have a custom publishing site definition. It was, of course, based off the default publishing site definition. I re-organized some features around, and added custom versions of required features just so I could control everything a little more to my liking. Anytime we do this, however, we run the risk of “what did I break?” [...]
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): 0x010100C568DB52D9D0A14D9B2FDCC96666E9F2007948130EC3DB064584E219954237AF3900 188024C0FF7F45CFB85EBB43980DACF5 Meaning, inherit from “Page” (the red part), include a [...]
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 my [...]
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 [...]
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 [...]
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 [...]
Might as well dive right in and make the inaugural posting useful… Anyone who’s done some development work with SharePoint probably already knows about this article, but I wanted to place it here for reference: Best Practices: Using Disposable Windows SharePoint Services Objects Review the article very carefully… there are things we do often such [...]