Building a Page Layout
Page Layouts are used as a template to build web pages. Within each page layout are layout regions and content regions. Once created, content is added either through templates or pre-defined regions to content regions.
Page Layout Context Details
This is the area where HTML and CSS layout codes are inserted. It is not necessary to link CSS codes to the page in the HTML section.
All layouts must start with the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
The specific code forces all browsers into XHTML strict mode, which is required for the WYSIWYG Editor to work correctly; it does not affect the actual output).
*Note: HTML Tag Id’s cannot be named the same as region names, this causes WYSIWIG conflicts.
Example 1 (OK):
< div id="test" >
< region type="content" name="Main" />
Example 2 (NOT OK):
< div id="test" >
< region type="content" name="test" />
*Note: There are two types of regions, Content and Layout, all regions must be named uniquely to avoid WYSIWIG conflicts.
Example 1 (OK, all have unique names):
< region type="content" name="c1" />
< region type="content" name="c2" />
< region type="layout" name="Lay1" />
< region type="layout" name="Lay2" />
Example 2 (NOT OK, can’t have content and layout regions named the same):
< region type="content" name="c1" />
< region type="content" name="c2" />
< region type="layout" name="c1" />
< region type="layout" name="Lay2" />
Example 3 (NOT OK, can’t have 2 content regions with the same name, can’t have 2 layout regions with the same name):
< region type="content" name="c1" />
< region type="content" name="c1" />
< region type="layout" name="Lay1" />
< region type="layout" name="Lay1" />