Template Structure

Top  Previous  Next

Template structure is a standard token-base approach used in for example, "Announcement" module of DotNetNuke. There's only one additional feature called, "repeater".

 

A repeater is a block of HTML code that repeats itself "x" times (which you can determine this "x" in Settings : Number of Items).

 

 

 

<br>

<table border="0" cellpadding="2" cellspacing="0" width="100%" class="Normal">

[REPEAT]

<tr>

<td valign="middle" align="center">[QICON1][QUESTION]</td>

</tr>

<tr>

<td valign="middle" align="center">[AICON1][ANSWER]</td>

</tr>

[/REPEAT]

</table>

 

 

 

The code above is a typical template. Here you can see [REPEAT] (token starting the repeater block) and [/REPEAT] (ending the repeater block) tokens. Everything within these starting and ending tokens is repeated as many times as it is set in the Settings.

 

Notice that, only [REPEAT] token has ending components as [/REPEAT]. The other tokens exist just as themselves.

 

To get detailed information about tokens and how to use them, see the section Tokens.