hello
i would like to list attachments by node but :
- the attachments list is well rendered
- the attachments links are always linking to the last attachment listed

here is my export :

$view = new view;
$view->name = 'df';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'upload_fid' => array(
    'label' => 'Attached files',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'html' => 0,
    ),
    'type' => 'ul',
    'separator' => ', ',
    'empty' => '',
    'link_to_file' => 1,
    'only_listed' => 0,
    'exclude' => 0,
    'id' => 'upload_fid',
    'table' => 'node',
    'field' => 'upload_fid',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'aaa');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'aaa',
  'description' => '',
  'weight' => '0',
  'name' => 'primary-links',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'description' => '',
  'weight' => 0,
));

Comments

msztorc’s picture

Yes, I have the same problem with this!

dawehner’s picture

as fast workaround use upload: description and use Link this field to download the file

i think this is still a active bug

merlinofchaos’s picture

Status: Active » Closed (duplicate)