I have a view which is a listing of events of varying durations (in days). I have both a block display and a page display for the view. All events show as expected (one line per event in order of start date of event) in the block display. Since I could not use an exposed filter in block display I created a page display. In page display each event is displayed 6 times in a row. All settings for block and page are the same.
Anyone have an idea why I'm getting 6 copies of every event??
Comments
Comment #1
dawehnerdid you tryed the distict setting?
could you please export the view?
thx!
Comment #2
dckantor commentedTried both distinct and not. No difference.
$view = new view; $view->name = 'bievents'; $view->description = 'Babcock Events'; $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( 'field_date_value' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'short', 'multiple' => array( 'multiple_number' => '', 'multiple_from' => '', 'multiple_to' => '', 'group' => TRUE, ), 'repeat' => array( 'show_repeat_rule' => '', ), 'fromto' => array( 'fromto' => 'value', ), 'exclude' => 0, 'id' => 'field_date_value', 'table' => 'node_data_field_date', 'field' => 'field_date_value', 'relationship' => 'none', ), 'title' => array( 'label' => '', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'field_eventtype_value' => array( 'id' => 'field_eventtype_value', 'table' => 'node_data_field_eventtype', 'field' => 'field_eventtype_value', ), 'upload_fid' => array( 'label' => 'Program', 'alter' => array( 'alter_text' => FALSE, 'text' => '', 'make_link' => FALSE, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'trim' => FALSE, 'max_length' => '', 'word_boundary' => TRUE, 'ellipsis' => TRUE, 'strip_tags' => FALSE, 'html' => FALSE, ), 'type' => 'separator', 'separator' => ', ', 'empty' => '', 'link_to_file' => 1, 'only_listed' => 0, 'exclude' => 0, 'id' => 'upload_fid', 'table' => 'node', 'field' => 'upload_fid', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'field_date_value' => array( 'order' => 'DESC', 'delta' => -1, 'id' => 'field_date_value', 'table' => 'node_data_field_date', 'field' => 'field_date_value', 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'bievent' => 'bievent', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'field_eventtype_value_many_to_one' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => FALSE, 'operator' => 'field_eventtype_value_many_to_one_op', 'identifier' => 'field_eventtype_value_many_to_one', 'label' => 'Content: Event type (field_eventtype) - Allowed values', 'remember' => FALSE, 'single' => TRUE, 'optional' => TRUE, 'reduce' => FALSE, ), 'id' => 'field_eventtype_value_many_to_one', 'table' => 'node_data_field_eventtype', 'field' => 'field_eventtype_value_many_to_one', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('items_per_page', 0); $handler->override_option('distinct', 1); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'desc', 'columns' => array( 'title' => 'title', 'field_date_value' => 'field_date_value', 'field_eventtype_value' => 'field_eventtype_value', ), 'info' => array( 'title' => array( 'sortable' => 0, 'separator' => '|', ), 'field_date_value' => array( 'sortable' => 1, 'separator' => '', ), 'field_eventtype_value' => array( 'sortable' => 1, 'separator' => '|', ), ), 'default' => 'field_date_value', )); $handler = $view->new_display('block', 'Block', 'block_1'); $handler->override_option('fields', array( 'field_date_value' => array( 'label' => '', 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'short', 'multiple' => array( 'multiple_number' => '', 'multiple_from' => '', 'multiple_to' => '', 'group' => TRUE, ), 'repeat' => array( 'show_repeat_rule' => '', ), 'fromto' => array( 'fromto' => 'value', ), 'exclude' => 0, 'id' => 'field_date_value', 'table' => 'node_data_field_date', 'field' => 'field_date_value', 'relationship' => 'none', ), 'title' => array( 'label' => '', 'link_to_node' => 1, 'exclude' => 0, 'id' => 'title', 'table' => 'node', 'field' => 'title', 'relationship' => 'none', ), 'field_eventtype_value' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'link_to_node' => 0, 'label_type' => 'none', 'format' => 'default', 'multiple' => array( 'group' => 1, 'multiple_number' => '', 'multiple_from' => '', 'multiple_reversed' => 0, ), 'exclude' => 0, 'id' => 'field_eventtype_value', 'table' => 'node_data_field_eventtype', 'field' => 'field_eventtype_value', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'upload_fid' => array( 'label' => 'Program', 'alter' => array( 'alter_text' => FALSE, 'text' => '', 'make_link' => FALSE, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'trim' => FALSE, 'max_length' => '', 'word_boundary' => TRUE, 'ellipsis' => TRUE, 'strip_tags' => FALSE, 'html' => FALSE, ), 'type' => 'separator', 'separator' => ', ', 'empty' => '', 'link_to_file' => 1, 'only_listed' => 0, 'exclude' => 0, 'id' => 'upload_fid', 'table' => 'node', 'field' => 'upload_fid', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'status', 'table' => 'node', 'field' => 'status', 'relationship' => 'none', ), 'type' => array( 'operator' => 'in', 'value' => array( 'bievent' => 'bievent', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', ), 'field_eventtype_value_many_to_one' => array( 'operator' => 'or', 'value' => array(), 'group' => '0', 'exposed' => TRUE, 'expose' => array( 'use_operator' => 0, 'operator' => 'field_eventtype_value_many_to_one_op', 'identifier' => 'field_eventtype_value_many_to_one', 'label' => 'Search Specific Event Type', 'optional' => 1, 'single' => 1, 'remember' => 0, 'reduce' => 0, ), 'id' => 'field_eventtype_value_many_to_one', 'table' => 'node_data_field_eventtype', 'field' => 'field_eventtype_value_many_to_one', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'reduce_duplicates' => 0, ), )); $handler->override_option('block_description', 'Babcock Events'); $handler->override_option('block_caching', -1); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'node/327'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));
Comment #3
dckantor commentedany luck with this?
Comment #4
karens commentedWhen you post an export, you need to wrap it in <code></code> tags or it's unreadable.
Looks like you're using a Date field. If so and it's multiple valued and you only want one row for each node, you have to select the field option to 'group multiple values.'
If that's not it, you need to check the right issue queue (Date, or Calendar if this is a Calendar view) and see if your problem is addressed.
Comment #5
dckantor commentedwhere would I find this setting?
thanks