I've manage to get this module up and running, however would like to add more than one mp3 player on each page. Is this possible now (or in the future) and if it can be done in the current version, is anyone able to point me in the right direction in doing this? thanks d~

Comments

jdelaune’s picture

On your filefield assuming you are using CCK with the MP3 Player formatter allow for multiple uploads per field. This will allow you to upload as many MP3s along with players for a node.

Let me know how you get on.

aneiki’s picture

thanks starnox, i thought that was the case. i am using cck and allowed for multiple uploads, uploaded more than one song, however only the first player is visible. i'm still a bit of a newbie using drupal and cck etc. not sure if it's the node-audio.tpl i'm using. i used the example you've provided.

thanks for taking the time to help!

jdelaune’s picture

Don't use the custom template as it won't work in this case. Follow the video as best you can (some of the admin bits have changed since making it).

aneiki’s picture

thanks starnox, got rid of the custom template, managed to add more than 1 player to a node. just need to try to work on the display a little, but great module! :)

jdelaune’s picture

I imagine something like this would work:

<?php foreach($node->field_mp3 as $key => $data){ ?>
    <div class="feature">
    <?php print $node->field_albumart[$key]['view']; ?>
    <p class="title"><?php print $node->field_title[$key]['view']; ?></p>
    <p class="artist"><?php print $node->field_artist[$key]['view']; ?></p>
    <?php print theme('mp3player', 'Default', $node->field_mp3[$key]['filepath'], $node->field_title[$key]['value'], $node->field_artist[$key]['view'], NULL); ?>
    </div>
<?php } ?>
jdelaune’s picture

Status: Active » Closed (fixed)

Let me know if this didn't work and I can re-open.