Hello,

I'm a beginner to PHP, so please forgive if this is a rudimentary problem--

I'm using contemplate to style nodes, all of which include audio that is embedded using SWF Tools + 1 Pixel Out player. The PHP I put into the Body section displays the audio player, and plays the audio fine, but I am unable to get it to display the track title ('Description' field), inside the player as it does when the contemplate module is not affecting output.

Currently, it looks like this in my body field (audio player functions without description):

<div class="field field-type-filefield field-field-upcoming-audio">
  <div class="field-items">
    <?php foreach ((array)$node->field_upcoming_audio as $item) { ?>
      <div class="field-item"><?php print $item['view'] ?></div>
    <?php } ?>
  </div>
</div>

I was able-- with some experimentation-- to make it display a track title as a separate field from the player (above the player as text), but it did not differentiate between titles for each track (rather, it printed the title of the first track above all of the players.)

Furthermore, I cannot find a way to make the description print inside the player. I continuously am entering erroneous code and breaking the template, so I'm afraid to continue experimenting.

Any suggestions are greatly appreciated!

-----

Body variables as follows:

$node->field_upcoming_audio (array)
$node->field_upcoming_audio[0] (array)
$node->field_upcoming_audio[0]['fid']
31
$node->field_upcoming_audio[0]['uid']
1
$node->field_upcoming_audio[0]['filename']
1 Istruzioni 1.mp3
$node->field_upcoming_audio[0]['filepath']
sites/default/files/1 Istruzioni 1.mp3
$node->field_upcoming_audio[0]['filemime']
audio/mpeg
$node->field_upcoming_audio[0]['filesize']
1476105
$node->field_upcoming_audio[0]['status']
1
$node->field_upcoming_audio[0]['timestamp']
1306781522
$node->field_upcoming_audio[0]['list']
1
$node->field_upcoming_audio[0]['data'] (array)
$node->field_upcoming_audio[0]['data']['description']
Trophies: Instruzioni
$node->field_upcoming_audio[0]['nid']
9
$node->field_upcoming_audio[0]['view']
<div class="swftools-wrapper onepixelout"><div class="swftools"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="290" height="24" id="swf13087217071"> <param name="movie" value="http://dsalcoda.org/sites/all/modules/swftools/shared/1pixelout/player.swf" /> <param name="allowScriptAccess" value="sameDomain" /> <param name="wmode" value="opaque" /> <param name="bgcolor" value="#FFFFFF" /> <param name="scale" value="showall" /> <param name="quality" value="autohigh" /> <param name="align" value="l" /> <param name="allowfullscreen" value="true" /> <param name="base" value="http://dsalcoda.org/sites/default/files/" /> <param name="play" value="false" /> <param name="menu" value="true" /> <param name="loop" value="false" /> <param name="flashvars" value="playerID=13087217071&amp;autostart=no&amp;loop=no&amp;soundFile=http:%2F%2Fdsalcoda.org%2Fsites%2Fdefault%2Ffiles%2F1%20Istruzioni%201.mp3" /> <!--[if gte IE 7]>--> <object type="application/x-shockwave-flash" data="http://dsalcoda.org/sites/all/modules/swftools/shared/1pixelout/player.swf" width="290" height="24"> <param name="allowScriptAccess" value="sameDomain" /> <param name="wmode" value="opaque" /> <param name="bgcolor" value="#FFFFFF" /> <param name="scale" value="showall" /> <param name="quality" value="autohigh" /> <param name="align" value="l" /> <param name="allowfullscreen" value="true" /> <param name="base" value="http://dsalcoda.org/sites/default/files/" /> <param name="play" value="false" /> <param name="menu" value="true" /> <param name="loop" value="false" /> <param name="flashvars" value="playerID=13087217071&amp;autostart=no&amp;loop=no&amp;soundFile=http:%2F%2Fdsalcoda.org%2Fsites%2Fdefault%2Ffiles%2F1%20Istruzioni%201.mp3" /> <!--<![endif]--> <p>You are missing some Flash content that should appear here! Perhaps your browser cannot display it, or maybe it did not initialize correctly.</p> <!--[if gte IE 7]>--> </object> <!--<![endif]--> </object> </div> </div>