I have events which display 6 times no matter how many days long the event is. Anyone have any idea how to get things to display only once? I am using view to create a page display. BTW the block display with seemingly all the same settings shows each event only once.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | view-export.txt | 7.2 KB | dckantor |
| #7 | Picture 10.jpg | 140.2 KB | dckantor |
Comments
Comment #1
karens commentedCan't do anything without more information, at the very least an export of the view and information about what kind of date field you're using.
Comment #2
dckantor commentedusing a content date field from date module
Comment #3
karens commentedwrap your export in <code></code>, otherwise it's unreadable.
Comment #4
dckantor commentedIt was wrapped in code tags (all that seems to do is make a grey box.
here it is again.
$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 #5
karens commentedI can't read it. If you do a copy from the export screen and then paste it right into an issue between code tags, it will have line breaks and be readable. There is nothing I can do with this.
Comment #6
arlinsandbulte commented@dckantor
Try opening the export with a different text editor.
I have found (on windows) that Wordpad sometimes works better than Notepad.
Comment #7
dckantor commentedThank you very much for your patience. I have now tried exporting the view on two different platforms and opening it in 3 different text editors in addition to copying and pasting directly into a post on this forum. I get no line breaks with any of these techniques. I have copied directly out of the export and pasted into a text editor and attached the file here. But, again it has no line breaks. I have also attached a screenshot of what my export looks like. I would gladly add the line breaks in if I knew where they belonged.
I realize this is quite a pain but I cannot seem to solve this code issue. Nor can I solve the original problem for which I am seeking help.
Any help you could provide would be greatly appreciated.
Comment #8
arlinsandbulte commented@dckantor: any progress or work around?
Can the status of this issue be changed? (preferably to fixed or closed)
Comment #9
arlinsandbulte commentedNo reply for quit a while... marking as fixed
Comment #11
dckantor commentedI never received a useful solution to this problem and it still persists today.