I'm working on a customization of the "Samples" block on Products. Basically what I need to know is how to get the file name from a sample.
So, I can use the following code in my view to get an array of samples:
<?php $_samples = $this->getSamples() ?>
... and I can iterate over those samples well enough. What I'm trying to figure out, is, how can I get the name of the file associated with that sample? I basically want to do a customization to the view where, if the sample file is an MP3, I display an embedded player. For all other file types, the default behavior (a link is shown, which when clicked, opens a new window and displays the sample) is perfectly fine.