
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
Include Topics and Web Pages Using
Use the | ||||||||
| Line: 56 to 56 | ||||||||
| ||||||||
| Changed: | ||||||||
| < < | Related Topics: VarINCLUDE, UserDocumentationCategory | |||||||
| > > | 5. Alert Box using Parameterized IncludeCreate a topic called AlertBox with the following content:
-----
%STARTINCLUDE%
<div style="border-color:#FF9933; border-style:solid; border-width:thin; width:85%; margin: 0 auto">
<table cellpadding="5" width="100%" cellspacing="0" cellpadding="12" border="0">
<tr bgcolor="#FFBB55">
<td valign="top" width="16"><img src="%ICONURL{warning}%" width="16" height="16" align="absmiddle" alt="" border="0"></td>
<td><b> %TITLE% </b></td>
</tr>
<tr bgcolor="#FFCC66">
<td> </td>
<td> %MESSAGE% </td>
</tr>
</table>
</div>
%STOPINCLUDE%
-----
| |||||||
| Added: | ||||||||
| > > | Now you can write %INCLUDE{ "AlertBox" TITLE="Alert" MESSAGE="This a test message" }% to get this:
TITLE="" and MESSAGE="" parameters are passed into the include. Using this approach, you can create a library of boxes in the Main web, such as Main.NoteBox, Main.InfoBox.
Related Topics: VarINCLUDE, UserDocumentationCategory | |||||||