Hi, CCK date fields made with Date Repeat only display the title of first date in Views. I checked with Unformatted, Grid, Table & List views. The Date Repeats do display correctly in Calendar, but I suspect that's because that's because it doesn't use the date title? Not sure.

I'm using Drupal6, CCK 6.x-2.x-dev, Date 6.x-2.0-rc4 & Views 6.x-2.x-dev.

Comments

jeremy_a’s picture

The node pages do have the full list of dates listed on the Repeats page, and the database entries are correct also. Here's an export of a view:

$view = new view;
$view->name = 'test';
$view->description = 'test';
$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(
  'title' => array(
    'label' => 'Title',
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'override' => array(
      'button' => 'Override',
    ),
    'relationship' => 'none',
  ),
  'field_test_value' => array(
    'label' => '',
    'link_to_node' => 0,
    'label_type' => 'widget',
    'format' => 'default',
    'multiple' => array(
      'group' => 0,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_test_value',
    'table' => 'node_data_field_test',
    'field' => 'field_test_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('sorts', array(
  'field_test_value' => array(
    'order' => 'ASC',
    'id' => 'field_test_value',
    'table' => 'node_data_field_test',
    'field' => 'field_test_value',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'dummy' => 'dummy',
    ),
    '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('items_per_page', 0);
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
  'grouping' => 'title',
  'override' => 1,
  'sticky' => 0,
  'order' => 'asc',
  'columns' => array(
    'title' => 'title',
    'field_event_date_value' => 'field_event_date_value',
  ),
  'info' => array(
    'title' => array(
      'sortable' => 0,
      'separator' => '',
    ),
    'field_event_date_value' => array(
      'sortable' => 0,
      'separator' => '',
    ),
  ),
  'default' => '-1',
));
$handler->override_option('row_options', array(
  'inline' => array(),
  'separator' => '',
));
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'daterepeat test');
$handler->override_option('menu', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
));
jeremy_a’s picture

Category: bug » support

Thinking this over, it seems like this is behaviour is by design - the CCK field holds only the initial value and the repeating dates are not exposed to Views.

How is it possible then to sort by date or group by date using Date Repeat?

karens’s picture

Status: Active » Fixed

Is this a duplicate of #322845: Question on Functionality? I'm not clear if that's what you mean since you keep saying 'titles'. If you mean only the date for the first value is displayed, that issue is the same and I just committed a fix. If you mean something else, reopen with more clarification.

The repeating dates are indeed exposed to views and available for filtering and sorting, but there was a problem in the display of the values.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.