Book Image

Liferay Beginner's Guide

Book Image

Liferay Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
Liferay
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
PayPal Test Account Configuration
Index

Time for action – creating a template


It is time to create a template:

  1. Go to Control Panel | Web Content.

  2. Click on Templates | Add Template.

  3. In ID field, enter HOSALE-TEMPLATE; in the Name field, enter HO Sale Template.

  4. For Structure, click on Select and double-click HOSALE-STRUCTURE.

  5. For Script, click on Launch Editor.

  6. When an editor window pops up, clear all content in the editor box, and paste in the following content:

    <table border="0" cellpadding="8" cellspacing="0" width="50%">
       <tr>
          <td></td>
          <td><img src="$onSaleSign.getData()" alt="On-sale image" height="150" width="150" /></td>
          <td></td>
       </tr>
       <tr>
          <td><img src="$houseOneImage.getData()" alt="On-sale house image" height="200" width="200" /></td>
          <td>$houseOneDesc.getData()</td>
          <td>$houseOnePrice.getData()</td>
       </tr>
       <tr>
          <td><img src="$houseTwoImage.getData...