Use file description on the uploaded file as title?

robhall - April 6, 2009 - 18:08
Project:SWF Tools
Version:6.x-2.5
Component:SWF Tools
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I was wondering if there is any way for the dynamic playlists created by using the file upload (attachment) module to use the file description on the uploaded file instead of the filename? I was hoping that this would be the default behavior but it isn't so. I'm trying to find a way to caption images uploaded by the file upload module and displayed with Image Rotator.

#1

Stuart Greenfield - April 6, 2009 - 20:25
Category:support request» feature request

At the moment there isn't a way to do this, but it's another sensible idea.

I'm building a list of feature enhancements, so this one will go on the list. I've noticed you tagged this thread as 5.x-2.4. I'm tending to focus new feature work on the 6.x series, so I'll get it working in there first, and then backport.

Changing to feature request as I want to be able to track new feature list!

#2

robhall - April 9, 2009 - 16:01

Stuart, FYI, this was a really easy customization on my part on line 908 of the swftool.module (version 5.x-2.4) I changed
$playlist_data['playlist'][$key]['title'] = $playlist_data['playlist'][$key]['filename'];
to
$playlist_data['playlist'][$key]['title'] = $data['description'];
then I realize that if you may have to account for the description not being available if you weren't using the upload module so I wound up with this that seems to be working for me but I haven't tested it (I'm only using the upload module with swf tools)

if (isset($data['description'])) { $playlist_data['playlist'][$key]['title'] = $data['description'];
    } else { $playlist_data['playlist'][$key]['title'] = $playlist_data['playlist'][$key]['filename']; }

#3

b_w_s - April 17, 2009 - 18:25
Version:5.x-2.4» 6.x-2.x-dev

Just wanted to chime in and say that I'd really like to see this in 6.x-2.x as well. Displaying the actual titles rather than the filepath seems like the one remaining thing standing in the way of easy plug 'n play operation for media playlists.

#4

nwe_44 - April 22, 2009 - 20:57

Would like to add my voice to this. Filenames/paths make little sense to the end user as descriptions. Fantastic module otherwise though.

#5

Stuart Greenfield - April 22, 2009 - 21:14
Version:6.x-2.x-dev» 5.x-2.4

I need to think about how to do this for the 6.x-2.x series - the direct integration with the upload module isn't in the SWF Tools 6 players (yet).

I haven't been actively working on the 5.x series in a while, so I will try to get round to implementing the fix suggested above, and to implementing something equivalent in the 6.x series.

In terms of 6.x, I am trying to work up the CCK support since this, ultimately, will be a much more flexible approach than the upload module. It might just take me a while to get it all in place.

Note to self - see also #420162: JW Player, 1PixelOut and displaying mp3s as Artists & Titles, not raw links

#6

deepM - May 31, 2009 - 20:51

Just to note, that #2 doesnt work with filefield and images as nothing but image names are passed to module. How could title or alt or desc be possible to fetch from swf module? I looked trough all the module and couldnt find a way to get it, suppose some extra function is needed to get it from CCK?

#7

nwe_44 - June 3, 2009 - 17:20

@deepM I've been using #2 and filefield + imagefield successfully. When you say "images" are you using imagefield to store the files, or the image module?

#8

deepM - June 3, 2009 - 22:01
Version:5.x-2.4» 6.x-2.5

imagefield ofcourse if using filefield. you are using it and getting DESCRIPTION of image in your XML? dont belive you as there is no code for it?!?! ohh and i see now that u r maybe talking about 5 and i was talking about version 6-2.5

#9

drupup - July 13, 2009 - 19:21

Add my voice on this one as well. SWFTools is so very, very close to being everything I need to make video easy for users. But the "filepath" titles are a real deal-breaker in terms of using playlists. It seems such a small thing in the overall picture, but it's vexing.

Can anyone suggest a workaround for Drupal 6 users similar to that suggested above?

#10

krabbe - July 14, 2009 - 13:26

subscribe...

#11

hugafish - August 14, 2009 - 03:55

subscribe

#12

hedac - October 1, 2009 - 05:56

Yes there has to be a way of display custom titles... but maybe this depends on the player swf also...
for example I have noticed that 1pixelout player displays the mp3 tags of author and title. I like that. But 1pixelout player only works for single mp3... when I use a list of files with JW player 3.17... the paths and filenames are displayed in the list.
It would be good to control titles with the description field. Subscribing.

#13

hedac - October 1, 2009 - 06:31

apparently... 1pixelout 2.0 beta supports multiple files and titles? as described here http://wpaudioplayer.com/standalone

#14

Stuart Greenfield - October 1, 2009 - 06:32

As part of the work on SWF Tools 6.3 I'm overhauling the playlist fuctions, and improving the CCK formatters.

The aim is that when you use a CCK filefield the playlist will pick up the description field and use that in the playlist. I'm also building in support for the getID3 module so that you can pick up meta-data and use that.

It's working as prototype at the moment, but not quite ready to commit as there are some glitches I'm still working on.

#15

iceman90 - October 13, 2009 - 22:52

subscribe.

#16

strawman - November 18, 2009 - 22:10

I tried #2 suggestion with 2.5 version of swftools with simpleviewer but there is no data to receive.....can't seem to get the alt text or the image description into the xml for simpleviewer...

any more suggestions or thoughts as to what can be done?

Thanks for the module and thank you for your time...

#17

strawman - November 19, 2009 - 00:56

figured it out...

once I clean it up I'll post what I did...

#18

overtune - November 26, 2009 - 07:50

subscribe

#19

cbassig - December 3, 2009 - 20:25

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.