Did you know: Changing existing Site Definitions is unsupported

During the last SharePoint Black Belts meeting we talked about deploying of all kinds of things in SharePoint. One of the topics was deploying and updating custom Site Definitions. Did you know that changing existing Site Definitions is unsupported?

Provisioning Publishing Pages using Features declarative markup

SharePoint Features allow you to provision all kinds of assets in a declarative way - we all know that. Using XML you can provision not only branding resources like CSS, JavaScript files and images but also Page Layouts and Master Pages. But did you know that using exactly the same mechanism you can provision Publishing Pages?

Debugging Content Query Web Part

Content Query Web Part (CQWP) is one of the coolest web parts available out of the box in MOSS 2007. Using nothing more than the standard functionality you can aggregate content available within your Site Collection. Additionally you can extend the CQWP by introducing new XSLT parameters and functions, what allows you to create pretty complex data presentation including paging.

Inconvenient SPWeb.GetListItem (Exception from HRESULT: 0x80070001)

SPWeb ships with the GetListItem method which allows you to retrieve a list item using a URL. While in general you would use the SPContext.Current.ListItem property to get the current list item, there are situations when the GetListItem method becomes really useful, like for example getting the current list item with elevated privileges. There is however one confusing thing about the GetListItem method and if you’re not focused enough, you will spend hours trying to figure out what is wrong.