They used to... Now they don't. I upgraded to the latest cvs of calendar and date... no change. I'm confused... And I suspect it's just user stupidity. But I can't see where I went wrong.

Following are exports of my view and the CCK nodes types

$view = new stdClass();
$view->name = 'calendar';
$view->description = 'Calendar view of any date field';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Calendar';
$view->page_header = '';
$view->page_header_format = '1';
$view->page_footer = '';
$view->page_footer_format = '1';
$view->page_empty = '';
$view->page_empty_format = '1';
$view->page_type = 'calendar';
$view->url = 'calendar';
$view->use_pager = TRUE;
$view->nodes_per_page = '99';
$view->block = TRUE;
$view->block_title = 'Calendar';
$view->block_header = '';
$view->block_header_format = '1';
$view->block_footer = '';
$view->block_footer_format = '1';
$view->block_empty = '';
$view->block_empty_format = '1';
$view->block_type = 'calendar';
$view->nodes_per_block = '99';
$view->block_more = TRUE;
$view->block_use_page_header = FALSE;
$view->block_use_page_footer = FALSE;
$view->block_use_page_empty = FALSE;
$view->sort = array (
array (
'tablename' => 'node',
'field' => 'changed',
'sortorder' => 'ASC',
'options' => 'normal',
),
);
$view->argument = array (
array (
'type' => 'calendar_year',
'argdefault' => '2',
'title' => 'Year',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_month',
'argdefault' => '2',
'title' => 'Month',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_day',
'argdefault' => '2',
'title' => 'Day',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Title:',
'handler' => 'views_handler_field_nodelink',
'options' => 'nolink',
),
array (
'tablename' => 'node_data_field_datetime',
'field' => 'field_datetime_value',
'label' => 'Date',
'handler' => 'content_views_field_handler_group',
'options' => 'default',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'event',
),
),
array (
'tablename' => 'node_data_field_location',
'field' => 'field_location_nid_default',
'operator' => 'OR',
'options' => '',
'value' => array (
),
),
array (
'tablename' => 'node_data_field_sponsor',
'field' => 'field_sponsor_nid_default',
'operator' => 'OR',
'options' => '',
'value' => array (
),
),
array (
'tablename' => 'term_node',
'field' => 'tid',
'operator' => 'OR',
'options' => '',
'value' => array (
),
),
);
$view->exposed_filter = array (
array (
'tablename' => 'node_data_field_location',
'field' => 'field_location_nid_default',
'label' => 'Location',
'optional' => '1',
'is_default' => '0',
'operator' => '0',
'single' => '0',
),
array (
'tablename' => 'node_data_field_sponsor',
'field' => 'field_sponsor_nid_default',
'label' => 'Sponsor',
'optional' => '1',
'is_default' => '0',
'operator' => '0',
'single' => '0',
),
array (
'tablename' => 'term_node',
'field' => 'tid',
'label' => 'Topic',
'optional' => '1',
'is_default' => '0',
'operator' => '0',
'single' => '0',
),
);
$view->requires = array(node, node_data_field_datetime, node_data_field_location, node_data_field_sponsor, term_node);
$views[$view->name] = $view;

$content[type] = array (
'name' => 'Location',
'type' => 'location',
'description' => 'A physical location and address',
'title_label' => 'Title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'comment' => '2',
'upload' => '1',
'old_type' => 'location',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'location_maxnum' => '1',
'location_defaultnum' => '1',
'location_weight' => '9',
'location_collapsible' => 1,
'location_collapsed' => 0,
'location_addanother' => 0,
'location_name' => '2',
'location_street' => '2',
'location_city' => '2',
'location_province' => '2',
'location_postal_code' => '1',
'location_country' => '1',
);

$content[type] = array (
'name' => 'Sponsor',
'type' => 'sponsor',
'description' => 'Actor, musician, instructor, etc.',
'title_label' => 'Title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'comment' => '2',
'upload' => '1',
'old_type' => 'sponsor',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'location_maxnum' => '0',
'location_defaultnum' => '0',
'location_weight' => '9',
'location_collapsible' => 1,
'location_collapsed' => 1,
'location_addanother' => 0,
'location_name' => '',
'location_street' => '',
'location_city' => '0',
'location_province' => '0',
'location_postal_code' => '0',
'location_country' => '1',
);

$content[type] = array (
'name' => 'Event',
'type' => 'event',
'description' => '',
'title_label' => 'Title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => true,
'sticky' => false,
'revision' => false,
),
'comment' => '2',
'upload' => '1',
'old_type' => 'event',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'location_maxnum' => '0',
'location_defaultnum' => '0',
'location_weight' => '9',
'location_collapsible' => 1,
'location_collapsed' => 1,
'location_addanother' => 0,
'location_name' => '',
'location_street' => '',
'location_city' => '0',
'location_province' => '0',
'location_postal_code' => '0',
'location_country' => '1',
);
$content[fields] = array (
0 =>
array (
'widget_type' => 'date_text',
'label' => 'Date/Time',
'weight' => '0',
'description' => 'M/D/Y 24HH:MM:SS',
'group' => false,
'required' => '0',
'multiple' => '1',
'granularity' =>
array (
'Y' => 'Y',
'M' => 'M',
'D' => 'D',
'H' => 'H',
'N' => 'N',
),
'todate' => 'optional',
'input_format' => 'site-wide',
'input_format_custom' => '',
'output_format_date' => 'm/d/Y - H:i',
'output_format_zone' => '',
'output_format_custom' => '',
'output_format_date_long' => 'l, F j, Y - H:i',
'output_format_zone_long' => '',
'output_format_custom_long' => '',
'output_format_date_medium' => 'D, m/d/Y - H:i',
'output_format_zone_medium' => '',
'output_format_custom_medium' => '',
'output_format_date_short' => 'm/d/Y - H:i',
'output_format_zone_short' => '',
'output_format_custom_short' => '',
'tz_handling' => 'site',
'field_timezone' => 'US/Eastern',
'field_name' => 'field_datetime',
'field_type' => 'date',
'module' => 'date',
),
1 =>
array (
'widget_type' => 'nodereference_select',
'label' => 'Location',
'weight' => '0',
'description' => '',
'field_location' =>
array (
'nids' =>
array (
0 => '0',
),
),
'default_value_php' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'referenceable_types' =>
array (
'location' => true,
0 => 1,
'blog' => false,
'event' => false,
'forum' => false,
'page' => false,
'poll' => false,
'sponsor' => false,
'story' => false,
),
'advanced_view' => '--',
'field_name' => 'field_location',
'field_type' => 'nodereference',
'module' => 'nodereference',
),
2 =>
array (
'widget_type' => 'nodereference_select',
'label' => 'Sponsor',
'weight' => '0',
'description' => '',
'field_sponsor' =>
array (
'nids' =>
array (
0 => '0',
),
),
'default_value_php' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'referenceable_types' =>
array (
'sponsor' => true,
0 => 1,
'blog' => false,
'event' => false,
'forum' => false,
'location' => false,
'page' => false,
'poll' => false,
'story' => false,
),
'advanced_view' => '--',
'field_name' => 'field_sponsor',
'field_type' => 'nodereference',
'module' => 'nodereference',
),
);

Comments

KarenS’s picture

Status: Active » Fixed

Pull up your view and look at the date field you set up. You have it set up to 'Group multiple values'. Change that to 'Do not group multiple values'. I have that in the documentation and in the default view, but I need to add some validation to the view to make sure it works that way.

jhpark’s picture

thanks! that worked perfectly

Anonymous’s picture

Status: Fixed » Closed (fixed)