Hi! I've configured a view which displays a block with all the attachments related to the current node.

The relevant settings are:

  1. filters:
    • node: published YES
    • upload: has attached files YES
  2. arguments:
  • "Node: Nid" with default argument: node ID from URL, validator "node"
  • fields:
    • Upload: attached files
  • Basic settings:
    • 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

    dawehner’s picture

    Isn't this the same problem as http://drupal.org/node/656944 ?

    mo6’s picture

    I'm having the exact same problem. Is this introduced by the Views 2.8 version?

    merlinofchaos’s picture

    Status: Active » Closed (duplicate)