Nesting Rules
A structure element, a data element, and an instruction can only be inserted in an appropriate structure element. The following tables describe the insertion rules.
Structure Elements Nesting Rules
| Structure Element | Can be inserted in |
|---|---|
| Section | Section, context, and work area |
| Section Title | Section |
| Paragraph | Section, list item, cell, header cell, context, and work area |
| Table | Section, context, and work area |
| Row | Table and context |
| Header row | Table, and context |
| Cell | Row and context |
| Header cell | Header row and context |
| List | Section, list item, cell, header cell, context, and work area |
| List item | List, and context |
| Hyperlink | Paragraph, section title, cell, header cell, and list item |
| Anchor | Paragraph, section title, and list item |
| Structure text | Section title, paragraph, cell, header cell, hyperlink, and context |
| OTScript code | Section title, paragraph, cell, header cell, and hyperlink |
| Context | Section, table, paragraph, row, header row, cell, header cell, and work area |
Data Elements Nesting Rules
Images can be inserted in a template depending on their format.
| Data Element | Can be inserted in |
|---|---|
| Loop | Section, paragraph, list, list item, table, header row, header cell, row, cell, hyperlink, and work area |
| Data Text | Section title, paragraph, cell, header cell, and hyperlink |
| Image | Section title, paragraph, cell, header cell, and hyperlink |
| File Attachment | Section title, paragraph, cell, header cell, and hyperlink |
Instructions Nesting Rules
| Instruction | Can be inserted in |
|---|---|
| Set Field | Section and work area |
| Page Format | Section and work area |
| Multicolumn | Section and work area |
| Subtemplate Call | Section and work area |
OTScript Code Rules
Many elements have properties that can be added in OTScript.
The following table lists the properties that can be coded in OTScript and available in the Properties tab:
| Can be inserted in |
|---|
| Code field of OTScript code and set field elements |
| Condition field of structure and data elements |
| Condition field of anchors |
| URL field of hyperlinks |
| Arguments cells of contexts, subtemplate calls, and methods parameters |