Getting Started > Construct a Template > Sub-Table Templates

Sub-Table Templates
The SubTables parameter is used to specify a list of sub-tables that contain data that is related to the main table.
When you use the SubTables parameter, you can reference sub-tables in the main template file. Sub-tables are referenced by table name. The following example references a sub table called sub:
#DREREFERENCE <!--ID-->
#DREFIELD TITLE="<!--TITLE-->"
#DREFIELD DESCRIPTION="<!--DESCRIPTION-->"
<!--sub-->
#DREENDDOC
 
The template file for the sub table is sub.tmpl. Sub.tmpl could contain the following:
#DREFIELD val="<!--val-->"
The result is that the following template would be used:
#DREREFERENCE <!--ID-->
#DREFIELD TITLE="<!--TITLE-->"
#DREFIELD DESCRIPTION="<!--DESCRIPTION-->"
#DREFIELD val="<!--val-->"
#DREENDDOC
 
Related Topics 
*