Page | Default Location | Typical Usage Scenario |
Publishing Page* | Pages library | Complete control over look and feel; more granular content management. |
Web Part Page | None; can reside in any library or folder | To display Web Parts; no content management requirement. |
Wiki page | Site Pages | Pages that look and function like the home page. |
ASPX Page | Site Pages or Layouts | Creates a blank ASPX, or ASP.NET Web page. If you create an ASPX page, you need to add the necessary Web Part Zones and page elements so that the page works as expected. If you create the ASPX page from the Site Pages in SharePoint Designer, it is not attached to a master page and therefore will not show the look and feel, borders, and navigation from the rest of the site. |
HTML Page | Creates a blank HTML page on your site. The HTML page you create cannot be viewed directly on your site because it doesn’t have the necessary ASP code required by SharePoint sites. The page can, however, be used to store HTML documents on the site |
Site pages are pages that are created, edited, and customized by end-users. They are primarily used for the content in a site. Site pages come in two types—a standard page and a Web Parts page. A standard page contains text, images, Web Parts, and other elements. A Web Parts page contains Web Parts in Web Part zones. They have a predefined layout that uses Web Part zones. Both types of site pages are edited using a Web browser or Microsoft SharePoint Designer. Site pages are provisioned from a template page that is stored on the file system of the front-end Web server. When a site is provisioned, SharePoint Foundation creates a pointer to the instance of the page template on the file system. This allows SharePoint Foundation to avoid repeatedly creating copies of the pages, which are provisioned each time a site is created. When a user customizes a site page, the template for the page is then stored in the content database. The page is retrieved from the content database every time it is requested by a user. A customized page can, however, be reset to the original template page through the Web browser or a tool such as SharePoint Designer. Customized site pages cannot contain an in-line server code. The set of controls that are allowed to run on the page is governed by the safe controls list in the <Drive>:inetpubwwwrootwssVirtualDirectories<port number>web.config file. It is a recommended best practice to avoid using server-side code on site pages when developing site definitions. If a user later edits or modifies that page, the code will no longer run. The following are general rules for using server-side code on a site page.
Interested in mastering SharePoint Training? Enroll now for FREE demo on " SharePoint Training "
An administrator can add a PageParserPath setting in the web.config file that allows server-side code to run on pages stored at a specified path. This can be a single, specific page or an entire directory of pages. The following sample shows a PageParserPath setting that uses a wildcard. Adding this PageParserPath will allow anyone with permissions to the master page gallery to upload server-side code. Use extreme caution when adding this type of PageParserPath setting. XML <SharePoint> <SafeMode ...> <PageParserPaths> <PageParserPath VirtualPath="/_mpg/*" CompilationMode="Always" AllowServerSideScript="true" IncludeSubFolders="true"/> </PageParserPaths> Site pages once customized run in no-compile mode whereas application pages are always compiled
That’s all there is to it! Plus, editing a page is very similar to creating a page. Just click the Edit button on the ribbon and follow steps 3 and 4 for creating a page.
To create a Web Part Page, open your site in SharePoint Designer 2010, and perform the following steps:
Choose a Web Part Page layout based on the previews provided. The new Web Part Page is created in the gallery of site pages. Create a Web Part page To create a Web Part Page, open your site in SharePoint Designer 2010, and perform the following steps:
You liked the article?
Like: 0
Vote for difficulty
Current difficulty (Avg): Medium
TekSlate is the best online training provider in delivering world-class IT skills to individuals and corporates from all parts of the globe. We are proven experts in accumulating every need of an IT skills upgrade aspirant and have delivered excellent services. We aim to bring you all the essentials to learn and master new technologies in the market with our articles, blogs, and videos. Build your career success with us, enhancing most in-demand skills in the market.