Understand the basics of how to create and provision a custom page in SharePoint 2013 with Visual Studio 2012

Ashok Raja
 
Solutions Architect
January 6, 2014
 
Rate this article
 
Views
338

The steps involved in creating and provisioning a custom page in SharePoint is almost same as that of creating and provisioning a custom page layout.

Follow the same steps explained in the previous article on how to create and provision a custom page layout and make the below changes.

1. Rename the file to samplepage.aspx ( Just to differentiate , nothing special about the name)

2. Change the Url attribute to “Pages” in the module node of Elements.xml

That’s it. Build and deploy the solution. Now you would have the samplepage.aspx provisioned into the pages library

So, basically it means that the same page can be provisioned as page as well as page layout. It’s the deployed location which decides how the file has to be treated.

Related Articles

Understanding the basics of how to create and provision a page layout in SharePoint 2013 with Visual Studio 2012

Difference between provisioning a custom pagelayout and custom page in SharePoint with Visual Studio

Category : Tips

Author Info

Ashok Raja
 
Solutions Architect
 
Rate this article
 
I am Ashok Raja, Share Point Consultant and Architect based out of Chennai, India. ...read more
 

Leave a comment