How to find a page layout in SharePoint 2010

Source: Internet
Author: User
Tags first row

Accustomed to 2007 of the page layout, although the feeling is not too easy to use, especially to start contact very do not understand page layout and the relationship between the page, but then clear, feeling or very good, especially for the same format of the site, modify the layout without changing the page situation, or very effective, well, said a pile of nonsense, Say 2010 inside, look for template pages.

Open Designer2010, and then open your own web site, find the previous Page Layout folder location, found all template pages (such as Figure 1), and then try to create a new page, 2010 can choose a project is not a lot of Html, aspx, CSS, etc., I think it is possible is ASPX , so you chose ASPX to create a new one, and then you open it, and you find that it's the original ASPX page, no previous SharePoint, no <asp: .../> and other controls.

That's roughly what it looks like.

<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 strict//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" >
    
<%@ Page language= "C #"%>
    
<%@ Register tagprefix= "SharePoint namespace=" Microsoft.SharePoint.WebControls "assembly=" Microsoft.SharePoint, version=14.0.0.0, Culture=neutral, publickeytoken=71e9bce111e9429c "%> 

Okay, first I kill the HTML thing underneath, all the HTML kills, and then add the previous PlaceHolderMain node. In
<%@ Page language= "C #"%>

Add the template page above, then add the PlaceHolderMain node below

<asp:content contentplaceholderid= "PlaceHolderMain" runat= "Server" save after ></asp:Content>. Preview, Error: Errors occurred while processing/_catalogs/masterpage/test.aspx. The content control can only be located directly in the contents page that contains the content control. Well, the first line is written with red lines, no see, kill the first row, then preview, ok!

Finally found the page layout, well, there is no imagination in the excitement, because there is no new page layout based on the page, quite disappointed, I think SharePoint2010 abandoned the concept of page layout, hehe, is only a personal point of view, but Designer2010 inside, there are " According to the existing Web page new "This option, but built is the same page, and no original layout of the role of the page, OK, to this end."

Ps: Quite simple a problem, oh, their own attempt to record in the process, I hope you do not laugh at me ha.

PS2: Opens the Publish function, may find the master page.

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/web/sharepoint/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.