Closed (duplicate)
Project:
Views (for Drupal 7)
Version:
6.x-2.8
Component:
files/upload data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2009 at 14:37 UTC
Updated:
17 Dec 2009 at 20:12 UTC
Hi! I've configured a view which displays a block with all the attachments related to the current node.
The relevant settings are:
I've set the field with "Rewrite the output of this field". The help text displays the following available replacement patterns:
* [upload_fid]
* [upload_fid-fid]
* [upload_fid-name]
* [upload_fid-type]
* [upload_fid-description]
* [upload_fid-path]
* [upload_fid-size]
None of them is replaced. For example I've a node with three attachments and the text I've used on the "rewrite the output of this field" is:
<a href="[upload_fid-path]" title="[upload_fid-description]">[upload_fid-description] ([upload_fid-size])</a>
The output doesn't substitute the replacement patterns with the correct value, but simply prints:
<ul><li class="first"><a href="[upload_fid-path]" title="[upload_fid-description]">[upload_fid-description] ([upload_fid-size])</a></li>
<li><a href="[upload_fid-path]" title="[upload_fid-description]">[upload_fid-description] ([upload_fid-size])</a></li>
<li><a href="[upload_fid-path]" title="[upload_fid-description]">[upload_fid-description] ([upload_fid-size])</a></li>
<li class="last"><a href="[upload_fid-path]" title="[upload_fid-description]">[upload_fid-description] ([upload_fid-size])</a></li>
</ul>
If you need more details please ask.
Many thanks for your support!
Comments
Comment #1
dawehnerIsn't this the same problem as http://drupal.org/node/656944 ?
Comment #2
mo6I'm having the exact same problem. Is this introduced by the Views 2.8 version?
Comment #3
merlinofchaos commentedhttp://drupal.org/node/652742 should fix it.