Hi! I've configured a view which displays a block with all the attachments related to the current node.
The relevant settings are:
- filters:
- node: published YES
- upload: has attached files YES
- arguments:
- "Node: Nid" with default argument: node ID from URL, validator "node"
- Upload: attached files
- Style: not formatted
- Row style: fields
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.