Use presentation templates

 

+

Search Tips   |   Advanced Search

 

Use a presentation template to...

  • Define the layout of elements

  • Define properties such as...

    • Background
    • Default font

Example presentation template...

<html>
<head>
    <link rel="stylesheet" href='<Component name="Web Content/cmgstyles.css"/>'>
</head>

<body text="black"
         bgcolor="white"
         background=""
         leftmargin="0"
         rightmargin="0"
         topmargin="0"
         bottommargin="0">

<p><table cellpadding=10>
<tr>
<td colspan=2>
<font size=+1>
    <i><Element context="current" type="content" key="Display Title"/></i>
</font>

<br><hr color=blue>

<tr>
<td valign=top>
<font color="#000000"> 
    <Element context="current" type="content" key="Content Image"/> 
</font>
<td valign=top>
<font color="#000000"> 
    <Element context="current" type="content" key="Body"/> 
</font>
</table>

</body></html>

Presentation templates allow one to change the look of a page without having to update what is being displayed on a page.

For example, a presentation template that displays a menu on the left side of a page can be changed to place it on the right without having to rebuild the menu. All web pages based on the same presentation template will be changed.

Presentation templates are built using HTML, so it may be helpful to build a "mock-up" of the page you are designing in HTML before creating a new presentation template. Simply replace the different sections of the Web page with references to IWWCM elements.

If you receive timeout errors when saving presentation templates containing large amounts of HTML...

  • Increase the total transaction lifetime timeout.

  • Create multiple HTML or rich text components and then reference these in the presentation template.

Use HTML to define the default properties of a presentation template in the same way you use HTML to define the default properties of a Web page.

Use HTML to define the layout of a presentation template in the same way you use HTML to define the layout of a Web page.

Create template maps to create links between authoring templates and presentation templates. Template maps determine which presentation template will be used to display the elements stored in a content item.

 

Parent Topic

Display Web content