Closed (duplicate)
Project:
Date
Version:
6.x-2.4
Component:
Date CCK Field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Oct 2009 at 01:32 UTC
Updated:
2 Oct 2009 at 23:01 UTC
path it produces is wrong:
http://www.mysite.com/node/nid
it has the literal string 'nid' instead of the actual nid value.
here is the exported view:
$view = new view;
$view->name = 'class_sessions';
$view->description = 'Class sessions';
$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(
'node_link' => array(
'label' => 'Node: Signup link',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'text' => 'signup',
'exclude' => 0,
'id' => 'node_link',
'table' => 'signup',
'field' => 'node_link',
'relationship' => 'none',
'tab' => 'signup',
'destination' => 1,
'override' => array(
'button' => 'Override',
),
),
'status' => array(
'label' => 'User: status',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'exclude' => 0,
'id' => 'status',
'table' => 'signup_log',
'field' => 'status',
'relationship' => 'none',
),
'field_session_time_value' => array(
'label' => 'Time',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 1,
'label_type' => 'widget',
'format' => 'default',
'multiple' => array(
'multiple_number' => '1',
'multiple_from' => '',
'multiple_to' => '',
'group' => 1,
),
'repeat' => array(
'show_repeat_rule' => 'show',
),
'fromto' => array(
'fromto' => 'both',
),
'exclude' => 0,
'id' => 'field_session_time_value',
'table' => 'node_data_field_session_time',
'field' => 'field_session_time_value',
'relationship' => 'none',
'override' => array(
'button' => 'Override',
),
),
'timestamp' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'link_to_node' => 0,
'comments' => 0,
'exclude' => 0,
'id' => 'timestamp',
'table' => 'history_user',
'field' => 'timestamp',
'relationship' => 'none',
),
'attended' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'link_class' => '',
'alt' => '',
'prefix' => '',
'suffix' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'strip_tags' => 0,
'html' => 0,
),
'exclude' => 0,
'id' => 'attended',
'table' => 'signup_log',
'field' => 'attended',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('sorts', array(
'field_session_time_value' => array(
'order' => 'ASC',
'delta' => '0',
'id' => 'field_session_time_value',
'table' => 'node_data_field_session_time',
'field' => 'field_session_time_value',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'field_class_nid' => array(
'default_action' => 'not found',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'breadcrumb' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate_type' => 'none',
'validate_fail' => 'not found',
'break_phrase' => 0,
'not' => 0,
'id' => 'field_class_nid',
'table' => 'node_data_field_class',
'field' => 'field_class_nid',
'validate_user_argument_type' => 'uid',
'validate_user_roles' => array(
'2' => 0,
'3' => 0,
'6' => 0,
'4' => 0,
'5' => 0,
),
'me_redirect' => 0,
'me_validate_user_argument_type' => 'uid',
'me_validate_user_roles' => array(
'2' => 0,
'3' => 0,
'6' => 0,
'4' => 0,
'5' => 0,
),
'relationship' => 'none',
'default_options_div_prefix' => '',
'default_argument_user' => 0,
'default_argument_fixed' => '',
'default_argument_php' => '',
'validate_argument_node_type' => array(
'panel' => 0,
'class' => 0,
'class_session' => 0,
'coach' => 0,
'page' => 0,
'profile' => 0,
'profile_basic_infromation' => 0,
'profile_student' => 0,
'story' => 0,
),
'validate_argument_node_access' => 0,
'validate_argument_nid_type' => 'nid',
'validate_argument_vocabulary' => array(
'1' => 0,
'2' => 0,
),
'validate_argument_type' => 'tid',
'validate_argument_transform' => 0,
'validate_user_restrict_roles' => 0,
'validate_argument_signup_status' => 'any',
'validate_argument_signup_node_access' => 0,
'validate_argument_php' => '',
'me_validate_user_restrict_roles' => 0,
'override' => array(
'button' => 'Override',
),
),
));
$handler->override_option('filters', array(
'status_extra' => array(
'id' => 'status_extra',
'table' => 'node',
'field' => 'status_extra',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('header', '<h3>Sessions</h3>');
$handler->override_option('header_format', '2');
$handler->override_option('header_empty', 0);
$handler->override_option('footer_format', '1');
$handler->override_option('footer_empty', 0);
$handler->override_option('items_per_page', 0);
$handler->override_option('style_options', array(
'grouping' => '',
));
$handler = $view->new_display('node_content', 'Node content - class sessions', 'node_content_1');
$handler->override_option('types', array(
'class' => 'class',
));
$handler->override_option('modes', array(
'0' => 'full',
));
$handler->override_option('argument_mode', 'nid');
Comments
Comment #1
choster commentedPreviously reported; please see #588188: "Link this field to its node" uses bad URL.