SharePoint Page Types

Ratings:
(4)
Views:0
Banner-Img
  • Share this blog:

SharePoint Page Types

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

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 "
  • If the page is uncustomized, the server-side code is supported on the page.
  • If the page is customized, the server-side code does not run, and the page does not render. This includes the code-behind for the page itself.

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

How to create a Site page [Normal/Wiki/Web Part Pages] in your SharePoint 2010 site:  

  1. Click theSite Actions menu and then click New Page. Or Site Actions >> View All Site Content >> Create
    1. If you don’t see the Site Actions menu or the option to create doesn’t appear you might not have permission to create a page.
  • Type a name for the page then click Create.
  • On the new page you created, you can do one or more of the following:
  • To add text, type, or copy text into the editable box.
  1. To format your text, click the Format Text tab on the ribbon (top navigation) and select a button.
  2. To insert a Web part or an existing list, click the Insert tab and click on the appropriate button. Now, select the Web part from the list you want and click Add.
  3. To insert a new list, click the Insert tab, type a title for your list, click a list type to select it, and then click OK.
  • When you are finished editing the page, click Save at the bottom.

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.

  Create a Web Part page

To create a Web Part Page, open your site in SharePoint Designer 2010, and perform the following steps:

  1. In the Navigation pane, click Site Pages.
  2. On the Pages tab, in the New group, click Web Part Page.

Choose a Web Part Page layout based on the previews provided. 42 The new Web Part Page is created in the gallery of site pages. 43 Create a Web Part page To create a Web Part Page, open your site in SharePoint Designer 2010, and perform the following steps:

  1. In the Navigation pane, click Site Pages.
  2. On the Pages tab, in the New group, click Web Part Page.
  3. Choose a Web Part Page layout based on the previews provided.
  4. The new Web Part Page is created in the gallery of site pages.
  5. Click in the name of the page (the default is Untitled_1.aspx) to rename it, if necessary.
  6. To edit the page, click the page again to open the summary page and then click the Edit file.
  7. The page opens in the page editor of SharePoint Designer 2010, where you can add views, forms, and other Web Parts to the page.
About Author
Authorlogo
Name
TekSlate
Author Bio

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.


Stay Updated


Get stories of change makers and innovators from the startup ecosystem in your inbox