cfpresentation

Defines the look and feel of a dynamic slide presentation.
Use the cfpresentation tag as the parent tag for one or more cfpresentationslide tags,
where you define the content for the presentation.

  <cfpresentation title="">

 cfpresentation(title="");

This tag requires Adobe ColdFusion 8 and up.  Not supported on Lucee, etc.

Attribute Reference

title string
Required

Specifies the title of the presentation.

backgroundColor string
Default: 0x727971

Specifies the background color of the presentation.
The value is hexadecimal: use the form "##xxxxxx" or "##xxxxxxxx",
where x = 0-9 or A-F; use two number signs or none.

control string
Default: normal

Specifies the presentation control:
Values:
  • normal
  • brief

controlLocation string
Default: right

Specifies the location of the presentation control:
Values:
  • right
  • left

directory string

Specifies the directory where the presentation is saved.
This can be absolute path or a path relative to the CFM page.
ColdFusion automatically generates the files necessary to
run the presentation, including:
index.htm
components.swf
loadflash.js
viewer.swf
ColdFusion stores any data files in the presentation,
including images, video clips, and SWF files referenced by the
cfpresentationslide tags in a subdirectory called data.
To run the presentation, open the index.htm file.
If you do not specify a directory, the presentation
runs in the client browser.

glowColor string
Default: 0x35D334

Specifies the color used for glow effects on the buttons.
The value is hexadecimal: use the form "##xxxxxx" or "##xxxxxxxx",
where x = 0-9 or AF; use two number signs or none.

initialTab string
Default: outline

Specifies which tab will be on top when the presentation is displayed.
This applies only when the control value is normal:
Values:
  • outline
  • search
  • notes

lightColor string
Default: 0x4E5D60

Specifies the light color used for light-and shadow effects.
The value is hexadecimal: use the form "##xxxxxx" or "##xxxxxxxx",
where x = 0-9 or A-F; use two number signs or none.

overwrite boolean
Default: yes

Specifies whether files in the directory are overwritten.
Specify this attribute only when the you specify the directory.
yes: overwrites files if they are already present
no: create new files
Values:
  • true
  • false

primaryColor string
Default: 0x6F8488

Specifies the primary color of the presentation.
The value is hexadecimal: use the form "##xxxxxx" or "##xxxxxxxx",
where x = 0-9 or AF; use two number signs or none.

shadowColor string
Default: 0x000000

Specifies the shadow color used for light-and shadow effects.
The value is hexadecimal: use the form "##xxxxxx" or "##xxxxxxxx",
where x = 0-9 or A-F; use two number signs or none.

showNotes boolean
Default: no

Specifies whether the notes tab is present:
Values:
  • true
  • false

showOutline boolean
Default: yes

Specifies whether the outline is present:
Values:
  • true
  • false

showSearch boolean
Default: yes

Specifies whether the search tab is present:
Values:
  • true
  • false

textColor string
Default: 0xFFFFFF

Specifies the color for all the text in the presentation user interface.

authpassword string

Sends a password to the target URL for Basic Authentication. Combined with username to form a base64 encoded string that is passed in the Authenticate header.

authuser string

Sends a user name to the target URL for Basic Authentication. Combined with password to form a base64 encoded string that is passed in the Authenticate header.

autoplay boolean
Default: true

Specifies whether to play the presentation automatically:
* true: the presentation automatically runs through the entire presentation at startup.
* false: the user must click the Play button to start the presentation and click the Next button to advance to the next slide in the presentation.
Values:
  • false
  • true

loop boolean
Default: false

Specifies whether the presentation runs in a loop:
* true: the presentation restarts automatically after it ends.
* false: the user must click the Play button to restart the presentation.
Values:
  • false
  • true

proxypassword string

Password required by the proxy server.

proxyuser string

User name to provide to the proxy server.

proxyhost string

Host name or IP address of a proxy server to which to send the request.

proxyport string

The port to connect to on the proxy server.

useragent string

Text to put in the HTTP User-Agent request header field. Used to identify the request client software.

destination string

Destination directory

format string

Specifies file format for conversion. The flashpaper format has been deprecated since CF 11+
Values:
  • html
  • ppt

Examples
Sample code using the cfpresentation tag

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub