Flash field for CCK?
Standard - April 6, 2008 - 15:10
Is there such a module?
Basically I want to have a module similar to CCK's "image", but for SWF content instead. I'd like to use this to create a new content type for flash banners on my frontpage.
I know there are other more complex modules that could do this, such as the ad module (kindly recommended by Mark Theunissen in http://drupal.org/node/242960) but for now I guess I'm just looking for the simplest possible solution (even if I'll probably upgrade sometime in the future).
Any advice is largely appreciated!

According to this
According to this issue:
http://drupal.org/node/134064
The embedded media field supports having a CCK field where you can past an arbritrary URL of an SWF file, and it will play with a default player.
http://drupal.org/project/emfield
The problem is that it won't support a nice interface for uploading the files. For that, you can try the upload.module in core, which will upload the files to the /files directory of your site. Thereafter, you can paste the URL into the CCK field.
However, I'm not sure this is the right approach for a banner on the front page. If you explained exactly how you plan on using a custom content type to have SWF banners on front, I may be able to suggest a better way? It seems like an odd method.
Hope that helps!
__________________________________________________________
Mark Theunissen
Code Baboon
Drupal based services
The long story
Thanks again Mark! You managed to answer both my threads in 2 minutes :)
Ok. Here's the long story :)
I'm trying to set up a site for a local student radio station. I've used CCK and Views to create a "one show - one blog" kind of site. Each user (show) also has the possibility to add a "teaser banner" shown on the front page (after approval from the site admin). For that, I used a new CCK content type and wrote a simple custom block. That block is enabled on the frontpage, showing the user's image (from the user profile) along with the title and body of the "teaser banner".
That worked out well, and that's why I thought of a similar approach for the flash banners. Hence my request for a flash field. The main difference would be that these banners should be created by the site admin rather than by the different users, and the only field visible would be the flash.
The site is very much a work in progress, and I still have a lot to learn on how "think" Drupal (previously I've only build static html and flash sites). That's also why I'm a bit afraid of adding too much complexity to the site, and rather stick to the simple solution. At least for now. Also, I'm not the one who will be using the site when it's finished, which makes a simple interface even more important.
No problem! I see what
No problem!
I see what you're getting at, and your solution seems good, especially if you've considered alternatives and decided against them. Using the upload.module and embedded media field should be user friendly enough for a site admin.
Let us know how it goes! :)
Mark
__________________________________________________________
Mark Theunissen
Code Baboon
Drupal based services
Do you know about the
Do you know about the station module?
That can do all sorts of stuff like provide a block of the show currently on air.
There should be made a new
There should be made a new module that provides such a CCK field. I'm no programmer, so I would take centuries to find a way.
But if someone makes this effort, it will be wonderful!! =)
I think it is really basic to have a way to work properly with swf in Drupal (I don't like the way flashnode is displayed. And you can't even change it's template using Contemplate). And also Swf Tools doesn't provide a field.
Who will be our hero???
Harald
This Helps me too
I am facing similar kind of issue..
sharma chelluri
module that allows flash
It's a modified version of imagefield but it seems to work. It allows you to upload images and flash files. I'm still debugging it but if anyone wants to use it despite the warning here is Image flash field.
http://m-w.co.uk/files/downloads/imageflashfield0.1.tar.gz
FlashField
I've had a few requests to create a CCK version of flash node. That's now underway in the new FlashField project. The plan is to take what are (hopefully) the best bits of flash node, such as auto size detection, ability to integrate to SWF Tools for media playback etc, but make it a CCK element so you can use it and present it however you wish!
I't s very early days, but it could be interesting!
________
Just five more minutes...
www.stuartandnicola.com
Wrong link
The link to the FlashField module was wrong in the prvious post. Crorrect url is http://drupal.org/project/flashfield.
Check this option out...
This is for Version 5 with SWFObject - could be adapted for 6 or tweaked for all sorts of purposes:
http://openconcept.ca/blog/varun/creating_a_flash_cck_content_type_with_...
Works a treat!
Kester Hynds
www.komoko.co.uk
Similar problem
Hi,
I am working on a gaming portal and am trying to do something similar.
I currently have a CCK content type called 'game' which is the actual game play page.
I am currently FTPing the games' .swf files to a fixed path and using a text field to specify the file name for display.
The fields for the 'game' type are:
Title
An Icon (image)
Help/Description for the game - text
.SWF - text (this is the .swf file name)
And then I am using Contemplate to create the actual tag, using the file path (path where I have stored my game's .swf files) plus the .SWF field's value, for the scr attribute.
I am also appending the current user's uid to be passed as a query string to the .swf.
Is there a better, more elegant way of doing this?
What I am finally doing is
What I am finally doing is using a Filefield 'field' and just uploading the .swf file.
And then creating a template file for the content type and printing out the
<embed>tag as I want it, using the $node variable.Can you share the syntax for this?
I've tried to get this working by upload the .swf via CCK filefield, but I'm not having any success. Can you share your embed code from your template file?
Thank you,
Esther
Esther Duncan
Project Manager, Digital Media