Hi, I am using drupal 7 and views 7
I would like to make a view using the file field. I can get it to display the complete path to the file name Sites/default/files/filename.mp3 I have it displaying the file name as a link using a token that is shown in the view, but I would like it to say "download - filename.mp3" and maybe the file size As a link.
No matter what I try I can not get the file name to be shown and the link snows up as Site.com/filename.org And not the complete path, do I need to put sites/default/files/ in manually? I hope not as I shuld be able to get the path to the file it is there I've seen it and when the link is the file name the path is correct.
Thanks for any help.
Follow me on: Twitter: http://twitter.com/1rubytweets Facebook: http://www.facebook.com/profile.php?id=1058306793 Join me on: Yahoo: jruby6767 Msn: jruby@charter.net
Above "Rewrite" you'll see "Formatter" - try changing that to URL.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Jim Ruby I would like to make a view using the file field. I can get it to display the complete path to the file name Sites/default/files/filename.mp3 I have it displaying the file name as a link using a token that is shown in the view, but I would like it to say "download - filename.mp3" and maybe the file size As a link.
No matter what I try I can not get the file name to be shown and the link snows up as Site.com/filename.org And not the complete path, do I need to put sites/default/files/ in manually? I hope not as I shuld be able to get the path to the file it is there I've seen it and when the link is the file name the path is correct.
I changed the formatter to url Checked output as a link Put [field_file] In the path area And download in the replacement text area
This worked, so how can I have the link use the file name in the link? I'm just about there. Should I add the file field again and use generic format and add it again or will that just mess things up?
What I want to end up is Download filename
I also want to change this in the Taxonomy term view to say download filename in stead of just a file name as a link.
Follow me on: Twitter: http://twitter.com/1rubytweets Facebook: http://www.facebook.com/profile.php?id=1058306793 Join me on: Yahoo: jruby6767 Msn: jruby@charter.net
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Ms. Nancy Wichmann Sent: Thursday, August 11, 2011 4:35 PM To: support@drupal.org Subject: Re: [support] views help overwriting a field
Above "Rewrite" you'll see "Formatter" - try changing that to URL.
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________
From: Jim Ruby I would like to make a view using the file field. I can get it to display the complete path to the file name Sites/default/files/filename.mp3 I have it displaying the file name as a link using a token that is shown in the view, but I would like it to say "download - filename.mp3" and maybe the file size As a link. No matter what I try I can not get the file name to be shown and the link snows up as Site.com/filename.org And not the complete path, do I need to put sites/default/files/ in manually? I hope not as I shuld be able to get the path to the file it is there I've seen it and when the link is the file name the path is correct.
Add the field name as a separate field and choose "exclude from display." Drag it above the file path field.
If you don't wish to output as a link (which seemingly would work) rewrite the file path field to be something like this:
<a href="/[path]">[name]</a>
This did not work for me. Maybe I implemented it wrong.
Follow me on: Twitter: http://twitter.com/1rubytweets Facebook: http://www.facebook.com/profile.php?id=1058306793 Join me on: Yahoo: jruby6767 Msn: jruby@charter.net
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Carl Wiedemann Sent: Thursday, August 11, 2011 5:22 PM To: support@drupal.org Subject: Re: [support] views help overwriting a field
Add the field name as a separate field and choose "exclude from display." Drag it above the file path field.
If you don't wish to output as a link (which seemingly would work) rewrite the file path field to be something like this:
<a href="/[path]">[name]</a>