HeaderTemplate Tag

Purpose

The GEN:HeaderTemplate tag provides you finer control of the table layout by placing a header at the top of the table.  The contents of the HeaderTemplate tag are inserted at the top of the table.

In general you can specify the layout of the header area outside of the template tags without using a HeaderTemplate.

Used In

HTML Layout Pages and Page Templates.

The HeaderTemplate tag is optional and can only be specified within a Table tag.

Code Generation Tag Attributes

None. The HeaderTemplate tag does not require a Name attribute.

Examples

     <GEN:Table Name=”EmployeesTable”>

               <table>

                 <!-- header row -->
                 <GEN:HeaderTemplate>
                 <tr><td colspan=10>Header Row</td></tr>
                 </GEN:HeaderTemplate>
                 <GEN:ItemTemplate>
                   <tr bgcolor=”white”>
                    <td><GEN:FieldValue Name=”FirstName”/></td>
                    <td><GEN:FieldValue Name=”LastName”/></td>
                    <td><GEN:FieldValue Name=”Title”/></td>
                    <td><GEN:FieldValue Name=”Address”/></td>
                    <td><GEN:FieldValue Name=”City”/></td>
                    <td><GEN:FieldValue Name=”State”/></td>
                    <td><GEN:FieldValue Name=”ZipCode”/></td>
                    <td><GEN:FieldValue Name=”Country”/></td>
                    <td><GEN:FieldValue Name=”Phone”/></td>
                   </tr>

                </GEN:ItemTemplate>             

                <!-- table footer -->
                <tr><td colspan=10>Table Footer Row</td></tr>

             </table>
     </GEN:Table>