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.

CommentFileSizeAuthor
swftools-file-description.patch765 bytesjoachim
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ssherriff’s picture

I can confirm that this works for me. I definitely think this is something that should be included.

Thanks very much!

Cheers,
Stephanie

mstef’s picture

Nice work!

Poieo’s picture

+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.

mandclu’s picture

+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.

pippal’s picture

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.