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):
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. [...]
When a SharePoint is application is created, a web.config file is created in the application folder you specified. One of the entries inside the SharePoint element is BlobCache. By default, it looks like this:
<BlobCache location="C:\BlobCache" path=".(gif|jpg|png|css|js)$" maxSize="10" enabled="FALSE" />
In order to improve the performance of your site, the BlobCache should be enabled.
<BlobCache location="C:\BlobCache" path=".(gif|jpg|png|css|js)$" maxSize="10" [...]
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 [...]
This isn’t in my area of expertise, but a co-worker of mine (thanks Carmen!) alerted me to this, so I figured I should put it here for safe keeping. It’s an article that describes the capacity limits for MOSS 2007.
Plan for software boundaries (Office SharePoint Server)
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 [...]