O'Reilly logo

Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started by Charlie Arehart, Raymond Camden, Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

Table 16.10. <cfdocumentitem> Types
TypeDescription
footerPage footer.
headerPage header.
pagebreakEmbed 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 ---> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required