Index: openacs-4/packages/acs-templating/www/doc/tagref/include-optional.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/tagref/include-optional.html,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/acs-templating/www/doc/tagref/include-optional.html 20 Nov 2002 00:57:10 -0000 1.1 @@ -0,0 +1,57 @@ + + + Templating System Tag Reference: include-optional + + +

Include

+ + Templating System : + Designer Guide : + Tag Reference : include-optional +
+ +

Summary

+ +

+The include-optional tag is used to include another template +in the current template, but make some other chunk dependent on whether or +not the included template returned something. +

+ +

+This is useful if, say, you want to wrap the template with some HTML, +for example, a frame in a portal, but if there's nothing to show, +you don't want to show the frame either. +

+ +

Usage

+ +
+<include-optional src="blog-months">
+  <tr>
+    <th bgcolor="@header_background_color@">
+      Archive
+    </th>
+  </tr>
+  <tr>
+    <td nowrap align="center">
+      <include-output>
+    </td>
+  </tr>
+  <tr>
+    <td height="16">
+      <table><tr><td></td></tr></table>
+    </td>
+  </tr>
+</include-optional>
+
+ +

Notes

+ +
+ + Tag added by: Lars Pinds (lars@collaboraid.net) +
Documentation added from sources on Nov 2002, Roberto Mello. +
+ + Index: openacs-4/packages/acs-templating/www/doc/tagref/index.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/tagref/index.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/tagref/index.html 13 Mar 2001 22:59:27 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/tagref/index.html 20 Nov 2002 00:57:10 -0000 1.2 @@ -46,6 +46,7 @@
  • <list>
  • <if>
  • <include> +
  • <include-optional>
  • <property>
  • <noparse>
  • <master>