Posted by joachim on July 14, 2009 at 4:16pm
Jump to:
| Project: | SWF Tools |
| Version: | 6.x-2.5 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
When the 'no download' formatter is chosen, the file description text isn't shown at all.
Here's a patch to show the file description below the player.
| Attachment | Size |
|---|---|
| swftools-file-description.patch | 765 bytes |
Comments
#1
I can confirm that this works for me. I definitely think this is something that should be included.
Thanks very much!
Cheers,
Stephanie
#2
Nice work!
#3
+1 For an approach similar to this. Would be great to have another formatter option such as 'swf tools with file description'.
Is there some other way to display an mp3 title above, below, or next to the 1pixelout player?
Also, I can confirm this patch works well.
#4
+1 for committing this, and I agree that a separate formatter would be a good idea.
FWIW, this solution also works with 3.0-beta4, though it's added at line 1454.
#5
Confirm this works too for 3.0-beta4 if
if ($element['#formatter'] == 'swftools') {$return .= "\n" . theme('filefield_formatter_default', $element);
}
// Otherwise, add the description if set.
elseif ($element['#item']['data']['description']) {
$return .= "\n" . '<div class="filefield-description">' . $element['#item']['data']['description'] . '</div>';
}
is added at 1454 in swtools.module, thanks joachim and mandclu, was looking for solution for a while.