Example of Sub-template

Parameter file enables you to include a static sub-template into the main template.
Parameter script, with parameter subtpl, enable you to include a dynamic sub-template.

In this example, header and footer are static sub-templates. Headings are also static-sub-templates but they depends to a global variable ($tmpl_article). The login area is a dynamic sub-template. It is managed by a sub-script which can be run under the TBS Subtemplate Mode.


[onload;file='tbs_us_examples_subtpl_header.htm']
[onload;script=tbs_us_examples_subtpl_login.php;subtpl]
[onload;file=[var.tmpl_menu]] [onload;file=[var.tmpl_article]]
 
[onload;file='tbs_us_examples_subtpl_footer.htm']

- See Header sub-template
- See Footer sub-template
- See Menu sub-template
- See Main Page sub-template
- See Heading 1 sub-template
- See Heading 2 sub-template
- See Heading 3 sub-template
- See Login sub-script source
- See Login sub-template