Hello,

I currently have the player placed on the teaser and the download link placed on the page.

I would like to know how I can place both player and download link together in 1 view.

I would really appreciate any comments.

Thanks in advance.

Comments

bonked’s picture

In your view, Add the File MP3 player (sounds like you have that working) as you are in fields.

Then add the same field (it will get named field_mp3_file-1 if your cck field is named field_mp3_file (adjust accordingly) for the label type choose "Custom" and in the drop down Format, choose "URL to file".

In the field template for the second field (views-view-field--viewname--field-mp3-file-fid-1.tpl.php for our example) change:

<?php print $output; ?>

To:

<?php 
  print l('Direct link to MP3', 
            $output, 
            array('title' => 'Direct link to MP3 - right click and choose Save As...')); 
?>

That should get you what you are looking for.

lost305’s picture

Bonked,

Thank you so much for your informative reply. Before I begin I need to ask because I'm already a little stuck....

Is there any hope in what I'm trying to do if I don't have it as a VIEW but as a CONTENT-TYPE?

I think you gave me instructions for editing a VIEW and that's my fault for saying VIEW.
I used it in the wrong way in regards to Drupal's association with VIEWS.

I said VIEW but I didn't mean that I've made a VIEW using the VIEWS module.
I made a CONTENT-TYPE and named it AUDIO.
I would like to place the player on the teaser and the player + download link in the full node. (almost wrote view again)

Just in case your instructions weren't just for VIEWS I tried creating another field in the CONTENT-TYPE named the same and now the form is asking me for 2 separate uploads. So obviously I'm confused.

I apologize for my miscommunication, but can you clarify it for me a little more?

Thank you again. I really appreciate your time and help.

lost305’s picture

Bonker,

After a lot of trial and error and tutorials I got the view of a PAGE working with displaying the player and the download link for ALL THE NODES but this isn't quite what I need.

I need the player and download link to display within the NODE page.

Right now it shows the domain.com/PAGE-VIEW, displaying like so...

node (player + download link)
node (player + download link)
node (player + download link)
node (player + download link)

but I need it to show the player + download link ONLY inside the node like in the domain.com/node/649016

I'm so confused. I looked at the themeing option in the VIEWS and it shows like 10 different templates per FIELD. I don't know which one to select. I think I can figure it out but still it's not for the actual NODE PAGE but the VIEW PAGE... I'm not sure if I'm confusing you because I'm surely confusing myself.

Can you please help me out further? I would extremely appreciate it.

Thanks for your time.

markie’s picture

Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Issue summary: View changes
Status: Active » Closed (works as designed)

Please give the newer dev version a try