Working with Presentations in ColdFusion
page 4 of 5
by Debjani Mallick
Feedback
Average Rating: 
Views (Total / Last 10 Days): 21444/ 12

Creating a presentation

Below is an example of creating a presentation using the tags defined in ColdFusion 8.

Listing 1

<cfpresentation title="Example Presentation" directory="presentationDemo" 
overwrite="Yes" showNotes="Yes">
<cfpresenter name="Presenter1" title="Title for first presenter" 
email="presenter1@demoExample.com" image="Image1.JPG">
<cfpresenter name="Presenter2" title="Title for second presenter" 
email="presenter2@demoExample.com" image="Image2.JPG">
<cfpresenter name="Presenter3" title="Title for third presenter" 
email="presenter3@demoExample.com" image="Image3.JPG">
<!--- The code below is used to create a slide from HTML code. --->
<cfpresentationslide notes="Notes for slide1">
<h3>Slide1</h3>
<ul>
<li>ExampleList1</li>
<li>ExampleList2</li>
<li>ExampleList3</li>
</ul>
</cfpresentationslide>
<!--- The code below is used to create a slide from HTML and CFML code. --->
<cfpresentationslide Title="Slide2" duration="10" presenter="Presenter1" 
notes="Notes for slide2">
<h3>Slide2</h3>
<cfchart format="png" showborder="yes" chartheight="200" chartwidth="250">
<cfchartseries type="cylinder">
<cfchartdata item="Item1" value="5">
<cfchartdata item="Item2" value="10">
</cfchartseries>
</cfchart>
</cfpresentationslide>
</cfpresentation>

Here the directory attribute specified in the cfpresentation tag, presentationDemo, is relative to the CFM page. We have defined three presenters for the slide presentation in the cfpresenter tag, along with the email ID and image for the presenters. In the first slide we have not defined any presenter. But in the second slide we have.

In a presentation created using ColdFusion, the slides appear or play in the order they are listed on the ColdFusion page. Each slide gets played for the duration specified and the information of the presenter, if added to a slide, gets displayed in the control panel next to the particular slide to which the presenter is assigned. The color settings do not affect the format of the slides, they affect the presentation interface. In practical, ColdFusion creates some files automatically required to run the presentation. Those are:

conponents.swf

index.htm

loadflash.js

viewer.swf

Those files get saved in the specified directory. ColdFusion also creates a subdirectory called data where it stores srchdata.xml, vconfig.xml, viewer.xml, a SWF file generated for each slide of the presentation and copies of media files referenced in the presentation slides which can include JPEG files, FLV and SWF video files. srchdata.xml creates the search interface. Clicking on index.htm file present in the directory makes the presentation to run.


View Entire Article

User Comments

No comments posted yet.

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-03-29 6:08:08 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search