Closed (won't fix)
Project:
Views (for Drupal 7)
Version:
6.x-2.10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2010 at 12:52 UTC
Updated:
25 Aug 2017 at 10:04 UTC
Jump to comment: Most recent
Comments
Comment #1
iamjon commentedthommyboy,
did you ever figure this out? if yes please update so others can benefit.
if not please provide an export of your view and provide step by step duplication instructions using simple content types and fields.
Comment #2
thommyboy commentedi solved it with a fieldtemplate but the problem is still there. just do a contenttype "mytest" and add one cck file field named "cck_image". add one node and call teh following view. the view displays a path to the uploaded image (no trailing slash) and a "node: path" field (trailing slash). i think as this nodepath is aliased it's send through a function that results in this trailing slash...
$view = new view;
$view->name = 'mytest';
$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', 'Standards', 'default');
$handler->override_option('fields', array(
'field_cck_image_fid' => array(
'label' => 'image',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'link_to_node' => 0,
'label_type' => 'widget',
'format' => 'path_plain',
'multiple' => array(
'group' => TRUE,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => FALSE,
),
'exclude' => 0,
'id' => 'field_cck_image_fid',
'table' => 'node_data_field_cck_image',
'field' => 'field_cck_image_fid',
'relationship' => 'none',
),
'path' => array(
'label' => 'node path',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'absolute' => 0,
'exclude' => 0,
'id' => 'path',
'table' => 'node',
'field' => 'path',
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'mytest' => 'mytest',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
Comment #3
iamjon commentedChanging status.
Comment #4
mustanggb commented