Controlling Output Using the <cfdocumentitem> Tag
<cfdocumentitem> is used within a <cfdocument> tag set to embed additional items. <cfdocumentitem> requires that a type be specified. Table 16.10 lists the supported types.
Type | Description |
---|---|
footer | Page footer. |
header | Page header. |
pagebreak | Embed a page break; this type takes no body. |
Note
Page breaks are calculated automatically by ColdFusion. Use <cfdocumentitem type="pagebreak"> to embed manual breaks.
Listing 16.12 is a revised printable movie listing, with more options specified.
Listing 16.12. Print3.cfm—Printable Output with Additional Items
<!--- Name: Print3.cfm Author: Ben Forta Description: Printable output with additional options Created: 07/10/2007 ---> ... |
Get Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.