SharePoint Master Pages by Coding Staff are provided in *.wsp packages (SharePoint Solution Package). After purchasing and downloading the SharePoint Package, the administrator can start the installation of this solution. There are 2 steps to follow:
- The first step is the installation of the solution to the solution collection available in the server farm.
- The second step is to deploy the solution itself on the server.
The first step is accomplished with the help of the standard utility “STSADM.exe” which is provided as a part of Sharepoint Foundation 2010 and is available on the following path:
Program Files\Common Files\Microsoft Shared\web server extensions\14\BIN.
The package installation is implemented by the following command:
stsadm -o addsolution -filename CodingStaff.MasterPageName.wsp
where CodingStaff.MasterPageName.wsp is the name of the purchased package; for example, CodingStaff.Recruit.wsp for the Recruit Master Page.
After the successful command completion, the second step (deployment) can be executed via browser. Just go to Central Administration Management:
A new solution with a “Not Deployed” status will appear in the solution list. To deploy it, click the “Deploy Solution” button which will direct you to the solution page. Pick the web application that the solution should be deployed for, and hit “OK” – as a result, the solution status will be changed to “Deployed”. Then, to activate the solution, open your site and go to Site Actions->Site Settings-> Manage site features and click “Activate” for the respective solution:
Now, you should open your site in SharePoint Designer 2010 and go to Master Pages ->Codingstaff.Recruit. Then, make right click on MasterPageName.master file and switch “Set as Default Master Page”.
To make you master page look good on layouts pages you should modify link of css file with full url. For it click on MasterPageName.master, click “Edit file”. In tag find following line
and modify it to <link rel="stylesheet" href="http://YouSiteUrl/_catalogs/masterpage/Codingstaff. MasterPageName /Styles/StyleFileName.css"/>