Page layouts |
A page layout consists of HTML layout of the page template and web part zones that specify regions where web parts can be placed. You will use page layouts to define the layout and design of your site.
The easiest way how to edit a page layout is to switch to the Design tab of the page and click the Edit layout button at the top-right:
The web part zones are defined by the following tag:
<cc1:CMSWebPartZone ID="xy" runat="server" />
The ID value must be unique within given layout.
As you can see, the layout code is standard HTML. It means you have full control over rendered HTML code and you can choose between table and CSS layout.
Managing pre-defined page layouts
When you are creating a new blank page, you can choose from pre-defined page layouts:
The Copy this layout to my page template option allows you to decide whether you will be using the shared layout or if you create a copy of the layout specific for your page template only. If you choose the shared layout and make changes to the HTML layout code, they will affect all pages that use the same shared page layout, so it's better to use a copy of the layout in most cases.
You can manage the pre-defined page layouts in Site Manager -> Development -> Page layouts. You can configure the following properties:
Sample layout code
The following sample page layout code uses a table to define a two-column layout:
The following layout code defines the same two-column layout, but using DIV elements and CSS styles:
|