Hi Kay,

Your assessment is correct regarding what the display template does--simply output the object and embed tags. Other templates can then be developed for displaying it in different manners (different div tags, etc.). Here is an example I had laying on my dev machine, but it is not from the 3.0 build.

<cfsetting enablecfoutputonly="Yes">

<cfif stObj.flashMovie neq "">
 <cfoutput>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=#stObj.flashVersion#"; width="#stObj.flashWidth#" height="#stObj.flashHeight#"> <param name="movie" value="#application.url.webroot#/files/#stObj.flashMovie#">
     <param name=quality value=high>
<embed src="#application.url.webroot#/files/#stObj.flashMovie#" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="#stObj.flashWidth#" height="#stObj.flashHeight#"></embed> </object> </cfoutput>
<cfelse>
<cfoutput><div style="margin-left:20px;margin-top:20px;">File does not exist.</div></cfoutput>
</cfif>
<cfsetting enablecfoutputonly="No">

Kay Smoljak wrote:


I've added a Flash object to my site tree. But when I try to either
navigate to it or preview from the admin area, I get the error message
"Could not find the included template _dmFlash/display.cfm". This is a
fresh site setup with milestone 3.01.

I can't find anything about the Flash content type in the wiki - what
is the display.cfm template meant to do? Output the object/embed
elements with the attributes populated from the stObj struct? I take
it the fact that it's missing is a bug?



X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.54.131.7 with SMTP id e7mr191922wrd;
       Mon, 22 May 2006 05:14:46 -0700 (PDT)
Return-Path: <[EMAIL PROTECTED]>
Received: from mx11.fusionlink.net (mx11.fusionlink.net [12.129.107.211])
       by mx.googlegroups.com with ESMTP id v11si956799cwb.2006.05.22.05.14.44;
       Mon, 22 May 2006 05:14:46 -0700 (PDT)
Received-SPF: neutral (googlegroups.com: 12.129.107.211 is neither permitted 
nor denied by best guess record for domain of [EMAIL PROTECTED])
Received: from [192.168.2.4] ([127.0.0.1]) by fusionlink.net with MailEnable 
ESMTP; Mon, 22 May 2006 08:16:13 -0400
Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 22 May 2006 08:14:49 -0400
From: Scott Talsma <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
Mime-Version: 1.0
Content-Type: text/plain
To: [email protected]
Subject: Re: [farcry-dev] Flash elements - how do they work?
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>

Hi Kay,

Your assessment is correct regarding what the display template does--simply output the object and embed tags. Other templates can then be developed for displaying it in different manners (different div tags, etc.). Here is an example I had laying on my dev machine, but it is not from the 3.0 build.

<cfsetting enablecfoutputonly="Yes">

<cfif stObj.flashMovie neq "">
 <cfoutput>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab##version=#stObj.flashVersion#"; width="#stObj.flashWidth#" height="#stObj.flashHeight#"> <param name="movie" value="#application.url.webroot#/files/#stObj.flashMovie#">
     <param name=quality value=high>
<embed src="#application.url.webroot#/files/#stObj.flashMovie#" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"; type="application/x-shockwave-flash" width="#stObj.flashWidth#" height="#stObj.flashHeight#"></embed> </object> </cfoutput>
<cfelse>
<cfoutput><div style="margin-left:20px;margin-top:20px;">File does not exist.</div></cfoutput>
</cfif>
<cfsetting enablecfoutputonly="No">

Kay Smoljak wrote:


I've added a Flash object to my site tree. But when I try to either
navigate to it or preview from the admin area, I get the error message
"Could not find the included template _dmFlash/display.cfm". This is a
fresh site setup with milestone 3.01.

I can't find anything about the Flash content type in the wiki - what
is the display.cfm template meant to do? Output the object/embed
elements with the attributes populated from the stObj struct? I take
it the fact that it's missing is a bug?




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/farcry-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to