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).

 

 

 

<table border="0" width="200" cellspacing="0" cellpadding="0" align="center">

       <tr>

               <td bgcolor="#066182" height="20">

                       <font color="White" size="1"><b>&nbsp;Also check these</b></font>

               </td>

       </tr>

       [REPEAT]

       <tr>

               <td valign="middle" height="20"><b>[TITLE]</b></td>

       </tr>

       <tr>

               <td>[SLOT]</td>

       </tr>

       <tr>

               <td valign="top" height="15" align="right"><font size="1"><b>[LINK]</b></font></td></td>

       </tr>

       <tr>

               <td height="1" bgcolor="Gray" width="100%"></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; [TITLE], [LINK], [SLOT].

 

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