Structured and repeatable deployment of SharePoint solutions is very important for preserving scalability and maintainability of the solution. Furthermore it allows you to keep track of the deployed components what is very important if you want to provide your customers with support for your solution.
Recently I've been working on a piece of code which would obtain an instance of SPFile using either a GUID or the server relative URL. You don't have to search long to find out that the SPWeb provides a method to do that: GetFile(String). According to the WSS v3 SDK it should return the file object located at the specific URL.
Page Layouts form the presentation layer in Publishing Sites of MOSS 2007. In fact they are very close to the Web Forms as we know them from ASP.NET except that Page Layouts in SharePoint don't contain any content.
Some time ago I have created a concept of the ContentQueryWebPart extended with paging support, called Imtech Extended ContentQueryWebPart. Since its release, the Imtech ExCQWP has been downloaded more than 200 times and some of you have sent me some questions regarding how it all works.
Did you know that you can preselect a Page Layout in the Create Page screen? To preselect a layout simply add LayoutName=YourLayout.aspx to the query string parameters: