Developer's Manual  Page Template  Creating a Template

Creating a Template

To create a template, open SiteMap and create a new page under the Templates folder. Open your new page and check-in the page for editing. Click the Page Layout button to switch to Page Layout mode. Create internal layout or click the Layout button to specify external layout file. You may also copy and paste the HTML code below into Layout propety directly.

<table border="1">
  <tr>
    <td colspan="2"><!--{$block(Page Header)}--></td>
  </tr>
  <tr>
    <td><!--{$block(Menu)}--></td>
    <td>
      <!-- if first page -->
      <?if($suDOC['id'] == 1):?>
        <table>
          <tr>
            <td colspan="2"><!--{$block(Latest News)}--></td>
            <td colspan="2"><!--{$block(Site Highlights)}--></td>
          </tr>
        </table>
      <?else:?>
        <!--{$block(Text)}-->
      <?endif;?>
    </td>
  </tr>
</table>

Click Save to save your changes and switch back to Page Properties mode.

Please login to add comments.