| 1 | <h2>Special Constants</h2> |
| 2 | <pre><code>$DomainContents$ |
| 3 | $PageRenderDuration$</code></pre> |
| 4 | |
| 5 | <h2>Operators & Variables</h2> |
| 6 | <pre><code>$SearchKey$ |
| 7 | $^SearchKey$ |
| 8 | $~SearchKey$ |
| 9 | $-SearchKey$ |
| 10 | $+SearchKey$ |
| 11 | $=SearchKey$ |
| 12 | $#SearchKey$ |
| 13 | $##SearchKey$ |
| 14 | |
| 15 | $*SearchKey$ |
| 16 | |
| 17 | [email protected]$ |
| 18 | $@#SearchObject.SearchProperty$ |
| 19 | [email protected]$</code></pre> |
| 20 | |
| 21 | <h2>Controls</h2> |
| 22 | <pre><code>$C:ControlID$ |
| 23 | $C:ControlID:{ <!-- Something --> }:ControlID$ |
| 24 | $C:ControlID:{ <!-- Something --> }:ControlID:{ <!-- Something (Alternative) --> }:ControlID$ |
| 25 | |
| 26 | Control with Parent |
| 27 | $C[Control1]:Control2$ |
| 28 | $C[Control2]:Control3:{ <!-- Something --> }:Control3$ |
| 29 | $C[Control2]:Control3:{ <!-- Something --> }:Control3:{ <!-- Something (Alternative) --> }:Control3$ |
| 30 | |
| 31 | Control with Parent & Leveling |
| 32 | $C#1[ParentControlID]:ControlID:{ <!-- Something --> }:ControlID$ |
| 33 | |
| 34 | All Control Tags has leveling specification; |
| 35 | $C:LoopControl1:{ |
| 36 | $#FirstLoopSQLField1$ |
| 37 | |
| 38 | $C:ControlID:{ <!-- Something --> }:ControlID$ |
| 39 | |
| 40 | $C:LoopControl2:{ |
| 41 | $##FirstLoopSQLField1$ |
| 42 | $#SecondLoopSQLField1$ |
| 43 | |
| 44 | $C#1:ControlID:{ <!-- Something --> }:ControlID$ |
| 45 | }:LoopControl2$ |
| 46 | }:LoopControl1$ |
| 47 | |
| 48 | XML setup on a Control in Controls.xml |
| 49 | <Control id="[ControlID]"> |
| 50 | <Type>[ControlType]</Type> |
| 51 | |
| 52 | <Bind>[ThemeID|AddonID]?[ControlClass].[FunctionName],SomeOperatorTags(seperated with |)</Bind> |
| 53 | |
| 54 | <BlockIDsToUpdate localupdate="True|False"> |
| 55 | <BlockID>[BlockID]</BlockID> |
| 56 | <BlockID>[BlockID]</BlockID> |
| 57 | <BlockID>[BlockID]</BlockID> |
| 58 | </BlockIDsToUpdate> |
| 59 | |
| 60 | <DefaultButtonID>[ControlID]</DefaultButtonID> |
| 61 | |
| 62 | <Text>[TextBox, Password value or Button Text]</Text> |
| 63 | |
| 64 | <Content>[Textarea Content]</Content> |
| 65 | |
| 66 | <Source>[Image URL]</Source> |
| 67 | |
| 68 | <Url>[Link URL]</Url> |
| 69 | |
| 70 | <Attributes> |
| 71 | <Attribute key="[HTMLAttributeKey]">[AttributeValue]</Attributes> |
| 72 | </Attributes> |
| 73 | </Control></code></pre> |
| 74 | |
| 75 | <h2>Directives</h2> |
| 76 | <pre><code>$T:TemplateID$ |
| 77 | $L:TranslationID$ |
| 78 | $P:TemplateID$</code></pre> |
| 79 | |
| 80 | <h2>Executable Functions</h2> |
| 81 | <pre><code>$F:AddonLib1?GlobalControls.PrintOutSums$ |
| 82 | $F:AddonLib1?GlobalControls.PrintOut,~FormField$ |
| 83 | $F:AddonLib1?GlobalControls.SumNumbers,~FormField|=5$</code></pre> |
| 84 | |
| 85 | <h2>Client Side Function Binding</h2> |
| 86 | <pre><code>$XF:{AddonLib1?GlobalControls.SumNumbers,~FormField|=5}:XF$</code></pre> |
| 87 | |
| 88 | <h2>Inline Statements</h2> |
| 89 | <pre><code>$S:StatementID:{ <!-- C# Code --> }:StatementID$ |
| 90 | $S:StatementID:{!NOCACHE <!-- C# Code --> }:StatementID$ |
| 91 | |
| 92 | $S:Statement1:{ |
| 93 | int intvalue1 = 5; |
| 94 | int intvalue2 = Integer.Parse("0" + $~FormValue$); |
| 95 | |
| 96 | return intvalue1 * intvalue2; |
| 97 | }:Statement1$</code></pre> |
| 98 | |
| 99 | <h2>Request Blocks</h2> |
| 100 | <pre><code>$H:RequestBlockID:{ <!-- Something --> }:RequestBlockID$ |
| 101 | $H:RequestBlockID:{!RENDERONREQUEST <!-- Something --> }:RequestBlockID$</code></pre> |
| 102 | |
| 103 | <h2>Cache Block</h2> |
| 104 | <pre><code>$PC:{ <!-- Page Content Part --> }:PC$</code></pre> |
| 105 | |
| 106 | <h2>Message Handling Block</h2> |
| 107 | <pre><code>$MB:{ <!-- Message Output Content --> }:MB$ |
| 108 | $MB:{ |
| 109 | $#Message$ |
| 110 | $#MessageType$ |
| 111 | }:MB$</code></pre> |