Hello,

I am new to Drupal and have found an issue with Views and the Calendar that I can’t figure out. My views calendar can be seen at http://www.naotw.biz/native-american-events. The default view is “View All” however it doesn’t. I have tested all the dates in the table (see word doc “views and calendar" attached) with one event named “test.” It appears on all dates work in the “View All” (default) except the ones with the “x”. When I go into the calendar without views (http://www.naotw.biz/event), you will notice a “test 1 & test 2 displayed on April 9th that do not appear in my “views” calendar.

Any light you can shed on this issue is greatly appreciated. Thank you for your time and energy.

Lindagail

CommentFileSizeAuthor
Views and Calendar.doc60.5 KBLindagail
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lindagail’s picture

Here is the Views code:
$view = new stdClass();
$view->name = 'calendar_by_location';
$view->description = 'calendar by location';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Native American Events';
$view->page_header = 'Please select the type of event and/or the geographic parameters you are looking for. \"All\" searches do not produce \"all\" categories. Please specify the type of event you are looking for. ';
$view->page_header_format = '1';
$view->page_footer = 'If you find multiple entries for the same event, please let us know. ';
$view->page_footer_format = '1';
$view->page_empty = 'Sorry, there are no events within your parameters. Try a search with a wider focus. ';
$view->page_empty_format = '1';
$view->page_type = 'month';
$view->url = 'native-american-events';
$view->use_pager = FALSE;
$view->nodes_per_page = '10';
$view->sort = array (
array (
'tablename' => 'node_data_field_date',
'field' => 'field_date_value',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array (
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink_with_mark',
'sortable' => '1',
),
array (
'tablename' => 'term_node_2',
'field' => 'name',
'label' => '',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'content-event',
),
),
array (
'tablename' => 'event',
'field' => 'event_start',
'operator' => '>',
'options' => '',
'value' => 'now',
),
array (
'tablename' => 'location',
'field' => 'proximity',
'operator' => '5',
'options' => '',
'value' => '',
),
array (
'tablename' => 'term_node_2',
'field' => 'tid',
'operator' => 'OR',
'options' => '',
'value' => array (
),
),
array (
'tablename' => 'location',
'field' => 'province',
'operator' => '',
'options' => '',
'value' => '',
),
);
$view->exposed_filter = array (
array (
'tablename' => 'term_node_2',
'field' => 'tid',
'label' => 'Search by Type of Event',
'optional' => 1,
'is_default' => 0,
'operator' => 1,
'single' => 1,
),
array (
'tablename' => 'location',
'field' => 'province',
'label' => 'Search by State / Province',
'optional' => 1,
'is_default' => 0,
'operator' => 1,
'single' => 1,
),
array (
'tablename' => 'location',
'field' => 'proximity',
'label' => 'Search by Proximity',
'optional' => 1,
'is_default' => 0,
'operator' => 0,
'single' => 0,
),
);
$view->requires = array(node_data_field_date, node, term_node_2, event, location);
$views[$view->name] = $view;

KarenS’s picture

Project: Views (for Drupal 7) » Calendar
Component: Views Data » Code

This would be a Calendar module issue, so moving it there. You need to confirm what version of that module you are using and try this using the latest snapshot code to see if it is still a problem there.

KarenS’s picture

Also, if you intend this to be a Calendar view, you need to set the Page type to 'Calendar' and add the Calendar arguments (Calendar: Year, Calendar: Month, and Calendar: Day).

Or am I misunderstanding what you are trying to do here? You said 'Views Calendar' so I'm assuming you're using the Calendar module to get a calendar display for Views.

Lindagail’s picture

Title: Views and Calendar issue - all dates do not appear in View All » Event View - dates do not appear in View All
Project: Calendar » Event

My apologies. I was mistaken. I am using 4.7 with the event module and event views.

Lindagail’s picture

Project: Event » Event Views
Version: 4.7.x-1.x-dev »

I do not have the calendar module. When I go to /events, I see all the events so I don't believe it is the Event Module that is causing this. But when I create the view using the Calendar Views in Views, events such as conferences do not show, as described above. Therefore I am changing the project to Event Views.