The simpleviewer module writes its XML file using this:

    <image>
      <filename>'. $details['filename']. '</filename>
      <caption>'. $details['description'] .'</caption>
    </image>';

but the resulting file winds up like this:

    <image>
      <filename>slide.jpg</filename>
      <caption></caption>
    </image>

which tells me that the description field of the $details array isn't being populated, presumably in the swftools module itself.

Comments

Marko B’s picture

Hmm yeah, i just wanted to ask how to ADD captions to images in SWF tools xml as XML is always empty, tried with title and alt also but nothing adds to xml. Any idea how to solve this?

strawman’s picture

didn't this ever get solved?
Having same issue right now...and looking to fix..

strawman’s picture

Only thing I can come up with is located in swftools module line 1034...trying to find away to get the module to pull the data from the cck field...any help would be great...don't really feel like taking the module apart to get this to work....

Please help...

Stuart Greenfield’s picture

A fix is coming!

The playlisting features need a big overhaul and this is now well underway in DRUPAL-6--3. The CCK support has been a hugely popular feature, so the next release should support descriptions properly. Watch this thread for updates!

Stuart Greenfield’s picture

Status: Active » Needs review

This is now fixed in branch DRUPAL-6--3. If you use CCK filefields to create the playlist, and provide a description with the file, then the description will be used as the caption.

Note you may need to clear your playlist directory to cause the xml files to be re-built, and also flush your browser cache, to pick up the new xml data.