Hi All,
Generally once we have done Master page development in our dev. Environment. We will move the same to another environment like QA, UAT or Production. This movement can be done in several ways like Manual Movement, Power shell scripting and Programming through Visual Studio.
In our current post we will see how to deploy Master page
into SharePoint Environment.
Step 1:
Create SharePoint Empty Project in our case “MasterPage_Deploy”.Step 2:
Now Add New Item (Ctrl+Shift+A) , Select “Module” from the Template provide the name(MasterFileModule) and click on Add button
In Module we can able to see one Elements.xml file and
Sample.txt file. We can delete sample.txt file if we are not using, in this
example we are not deleting.
Step 3:
Now, create one folder and place your Master Page in it. We are creating folder just for the segregation and best practice.Step 4:
Now , Open Elements.xml and add the following attributes “URL” and “Type”
<File Path="MasterFileModule\MasterPage\SampleDemoMaster.master" Url="SampleDemoMaster.master" Type="GhostableInLibrary" />
Step 5:
Now, Deploy your solution and check master page by Navigate to master page Galleries from Site Settings.
final out put will be as follows.
Simple and Nice post
ReplyDeleteThanks...
ReplyDeletevery useful..thanks for the post...
ReplyDelete