Closed (works as designed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
files/upload data
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2012 at 11:51 UTC
Updated:
6 Jan 2019 at 23:17 UTC
Jump to comment: Most recent
Comments
Comment #1
peteruithoven commentedYou can link rendered files by rewriting it's output and making it link to the path of the node.
Add "Path" to the fields, exclude it from display and select Use absolute link (under rewrite results).
Edit the file field, under rewrite results you will find a output this field as a link option, select it. Fill in the "[path]" replacement pattern.
I find it weird that this is so hidden, because for me, it's a very common use case.
Comment #2
rnyberg commentedAs of the latest version. Rewriting no longer links the rendered file. Even making a full rewrite of the field, the file div stays outside the anchor element.
Comment #3
Webbehhttp://drupal.org/node/1858036#comment-6837882
This solves the issue. This is an issue with File Entity, not with Views.
Comment #4
mjk3r commentedHad the same problem
In Views 7.x-3.5.....
- Media module installed
- have content type "Video"
- it has a field "Video" which takes URL from youtube or vimeo
----
#1 (using absolute path) didn't work for me.
However I got it done by:
1. add field "Nid"
- link it to original piece of content
- exclude from display
2. Rewrite Video field output as follows:
- Output this field as a link
- Link path: node/[nid]
hope it helps even 1 person
with all the best
Comment #5
chris matthews commented