The Content variable

Apr 26, 2014 5:23 pm

The Default page layout and other interior pages layouts display content from the Blue Interface. To determine where this content should appear within the site's layout, Freedom has a special Content variable.

The Content variable is surrounded by double brackets ([[Content]]) and should be in its own div or table cell. The following example shows a very simple page layout that contains the content variable and basic HTML formatting.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link rel="stylesheet" href="stylesheet.css" type="text/css" />
<div id="header"><img src="graphics/logo.jpg" alt="logo" /></div>
<div id="contentDiv">
<div id="footer">Copyright 2011</div>

For example, if a website visitor is viewing a news article, the system displays the Default page layout and places the news article where the Content variable is located; if viewing a blog, the system displays the same Default page layout, but with the blog in the Content section.

Below is a webpage with a blog post. In the Default page layout, the content is a [[Content]] variable. This is the part inside the red rectangle. Unless this site is using display types, the same Default page layout will be used for every interior page on the site, regardless of what content is displayed.