Deploying Publishing Page Layouts and Pages Using Features

In this post we go through the step-by-step process of creating a SharePoint solution that deploys a publishing page layout and a publishing page for press releases. Provisioning page layouts and pages using features and solution packages (*.wsp) allows for improved code reuse and makes it easier to move the solution between environments (development, testing, staging, and production).

As a matter of fact, there are already quite a few examples on the web that cover the topic of creating a SharePoint 2010 publishing page layout in Visual Studio 2010. One particularly good article is posted from Becky Bertram on her blog here.

However, in a recent project of ours, we also needed to deploy publishing pages together with the page layout, and after coming up with the solution, we decided to share our experience. The SharePoint Developer Tools in Visual Studio 2010 do not include specific project item templates for doing this, but it can be achieved using the module item template.

Here is how our solution will look like when we are done:

Solution Structure

Please note that in order to successfully deploy the solution the target SharePoint site should be a publishing site.

Continue reading

Welcome!

Welcome to our blog!

Here we will be posting tips and valuable insights on MS SharePoint and other top-notch technology. To prevent the blog from growing too ‘nerdy’, we will also keep you posted on interesting news and events in our company and the bigger technical community. So stay tuned, there’s more to come!

In the meantime, check out our brand-new website at www.tippoint.net