Sunday, October 12, 2008

Create Custom Site Definition for SharePoint with Custom MasterPage

There are situations in SharePoint World we have to use same customized master page for every SharePoint site in the organization. Customizing master page using SharePoint designer is take time and its too hard to maintain. As a solution for the you can introduce new SharePoint Site Definition for your organization. Using that you will be able to use same look and feel for each and every site that you going to create for your organization.

(Visual Studio 2008 extensions for Windows SharePoint Services 3.0 (version 1.2)




Then open wsp view of the solution. If wsp view not visible in the project you can open it from View à Other Windows à WSP View (CTRL+W,I)


Then open webtemp.xml (webtempMyCustomDefinition.xml)


Then change it titel as relevent ( this step is not nessasry )



Now you are ready to deploy your solution.


Deploy your solution using Visual Studio.


Chake follwing folders after complte deploymet


“MyCustomDefinition” at

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\


webtempMyCustomDefinition.xml file at

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML


Make sure to IISRESET

Now you are ready to create new web site using new custom site definition.

Change Deployment tab in template selection .



No comments: