I have a CCK type with only the date field added. CCK is version 1.3. Using views (1.5) under drupal 5.1 I am unable to create a calendar (1.2) that does not contain a date in each calendar box. When I go back to 1.0 beta, this behavior goes away. When creating the view, I use the node title and date field and the standard year, month, and day arguments along with a filter for my CCK calendar type.
http://teachernotes.org/drup2/?q=cal/2007/2

CommentFileSizeAuthor
#31 screen_6.png5.19 KBharriska2
#3 content_type1.png4.5 KBharriska2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gmak’s picture

I'm getting the same behaviour. You can see this at: http://portal.baade.org/calendar.

I can't see what is generating this date, as it is not a field that is called for in the setup for the view.

using:
calendar module 1.20.2.16
views module 1.166.2.6

KarenS’s picture

I need to add this to the instructions at the top of the issue page, but I almost always need to see and export of your view to debug things like this.

harriska2’s picture

FileSize
4.5 KB

$view = new stdClass();
$view->name = 'Cal';
$view->description = '';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Cal';
$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 = 'cal';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->menu = TRUE;
$view->menu_title = 'Cal';
$view->menu_tab = FALSE;
$view->menu_tab_default = FALSE;
$view->menu_tab_weight = '0';
$view->sort = array (
);
$view->argument = array (
array (
'type' => 'calendar_year',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_month',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_day',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => '',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node_data_field_cal',
'field' => 'field_cal_value',
'label' => '',
'handler' => 'content_views_field_handler_group',
'options' => 'default',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'cal',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, node_data_field_cal);
$views[$view->name] = $view;

harriska2’s picture

$content[type] = array (
'name' => 'Cal',
'type' => 'cal',
'description' => '',
'title_label' => 'Title',
'body_label' => '',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => true,
'sticky' => false,
'revision' => false,
),
'comment' => '2',
'old_type' => 'cal',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
);
$content[fields] = array (
0 =>
array (
'widget_type' => 'date_select',
'label' => 'Cal',
'weight' => '0',
'select_day' => '1',
'select_month' => '1',
'select_year' => '1',
'years_back' => '3',
'years_forward' => '3',
'increment' => '1',
'description' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'granularity' =>
array (
'Y' => 'Y',
'M' => 'M',
'D' => 'D',
),
'todate' => '',
'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' => 'GMT',
'field_name' => 'field_cal',
'field_type' => 'date',
'module' => 'date',
),
);

KarenS’s picture

Status: Active » Fixed

Found the problem. There was a varible that wasn't getting reset properly so it was carrying over a previous (invalid) value. This one probably caused some of the other errors on the issue queue, too, so it was a real problem. The provided view and field info was critical to helping me find it, so thanks!

harriska2’s picture

Karen, thanks. I went to CVS and got version 1.20.2.19 of the calendar.module for 5.x. I updated, added some more test data to http://teachernotes.org/drup2/?q=cal

Just wondering, is the date supposed to show within the calendar?

Calendar view

$view = new stdClass();
$view->name = 'Cal';
$view->description = '';
$view->access = array (
);
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Cal';
$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 = 'cal';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->menu = TRUE;
$view->menu_title = 'Cal';
$view->menu_tab = FALSE;
$view->menu_tab_default = FALSE;
$view->menu_tab_weight = '0';
$view->sort = array (
);
$view->argument = array (
array (
'type' => 'calendar_year',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_month',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
array (
'type' => 'calendar_day',
'argdefault' => '2',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array (
array (
'tablename' => 'node',
'field' => 'title',
'label' => 'Title',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array (
'tablename' => 'node_data_field_cal',
'field' => 'field_cal_value',
'label' => '',
'handler' => 'content_views_field_handler_ungroup',
'options' => 'default',
),
);
$view->filter = array (
array (
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array (
0 => 'cal',
),
),
);
$view->exposed_filter = array (
);
$view->requires = array(node, node_data_field_cal);
$views[$view->name] = $view;

CCK date field
$content[type] = array (
'name' => 'Cal',
'type' => 'cal',
'description' => '',
'title_label' => 'Title',
'body_label' => '',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => true,
'sticky' => false,
'revision' => false,
),
'comment' => '2',
'old_type' => 'cal',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
);
$content[fields] = array (
0 =>
array (
'widget_type' => 'date_select',
'label' => 'Cal',
'weight' => '0',
'select_day' => '1',
'select_month' => '1',
'select_year' => '1',
'years_back' => '3',
'years_forward' => '3',
'increment' => '1',
'description' => '',
'group' => false,
'required' => '0',
'multiple' => '0',
'granularity' =>
array (
'Y' => 'Y',
'M' => 'M',
'D' => 'D',
),
'todate' => '',
'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' => 'GMT',
'field_name' => 'field_cal',
'field_type' => 'date',
'module' => 'date',
),
);

harriska2’s picture

I went ahead and rolled back to 1.2 dated 11/19/06 and it seems to work pretty well. I did a diff between the version on 11/19 and 1/12 and can't figure out why the older (11/19) version doesn't display the date and the newer version (1/12) does.

gmak’s picture

Version: 5.x-1.2 » 7.x-1.x-dev

This issue still persists in HEAD. In the month, week and day views you see the fields selected in the View settings for calendar but you also see an additional 'end date'.

gmak’s picture

Status: Fixed » Active

changing to active, based on previous post

Lowell’s picture

Is there a version of calender that is newer than the 2/1/2007 version 1.2?

I am having the same trouble and wonder if the fix is in a newer version that I just don't know how to access

harriska2’s picture

Yes, in the repository Karen submitted one that is 3 days old (calendar.module file). It is here:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/calendar/cale...

1. Click on download and save the file
2. Back up your old calendar.module file under modules/calendar (name it something like calendar.module.old or something)
3. Replace the calendar.module with the new one
4. Go to admin -> modules and click on update database

gmak’s picture

the process described by harriska2 doesn't seem to result in anything new. I'm still getting the extra dates (end date) appearing in the calendar views

gmak’s picture

Actually, I've just noticed that following harriska2's process fixes this issue but doesn't change the 'rogue end date' in the view.

gmak’s picture

More digging and testing and I find that with the latest CVS version of Calendar and the latest HEAD on date module I'm getting:

rogue end date still appearing in Month view

no rogue end date in week view, but week view also does not show all of the fields defined for the view.

View definition:

  $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 = '';
  $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' => '',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    array (
      'tablename' => 'event',
      'field' => 'event_start',
      'label' => '',
      'handler' => 'views_handler_field_date_small',
    ),
    array (
      'tablename' => 'event',
      'field' => 'event_end',
      'label' => '',
      'handler' => 'views_handler_field_date_small',
    ),
    array (
      'tablename' => 'node',
      'field' => 'body',
      'label' => '',
      'handler' => 'views_handler_field_body',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'term_node_3',
      'field' => 'tid',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => '4',
  1 => '5',
  2 => '6',
),
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'tid',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => '1',
  1 => '2',
  2 => '3',
),
    ),
  );
  $view->exposed_filter = array (
    array (
      'tablename' => 'term_node_3',
      'field' => 'tid',
      'label' => '',
      'optional' => '0',
      'is_default' => '0',
      'operator' => '0',
      'single' => '0',
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'tid',
      'label' => '',
      'optional' => '0',
      'is_default' => '0',
      'operator' => '0',
      'single' => '0',
    ),
  );
  $view->requires = array(node, event, term_node_3, term_node_2);
  $views[$view->name] = $view;

CCK definition:

$content[type]  = array (
  'name' => 'Event',
  'type' => 'event',
  'description' => 'An event is a story which can be given a start and end date, thus appearing in the events calendar.',
  'title_label' => 'Title',
  'body_label' => 'Body',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => false,
    'sticky' => false,
    'revision' => false,
  ),
  'comment' => '0',
  'upload' => '0',
  'amazon_related_link' => '0',
  'event_nodeapi' => 'all',
  'eventrepeat_nodeapi' => 1,
  'nodefamily_max' => '0',
  'nodeprofile' => 0,
  'old_type' => 'event',
  'orig_type' => 'event',
  'module' => 'basicevent',
  'custom' => '0',
  'modified' => '1',
  'locked' => '1',
  'reset' => 'Reset to defaults',
);
harriska2’s picture

GMAC - Nice putting your code between code tags. Yes, I agree it is not fixing the problem of putting in dates for a calendar (which seems redundant and is a newer issue as it didn't do that before.)

I suspect Karen has a full time job and can work on this once every week or so - she is a volunteer, anyways. I hate to bug her and wish I was a better coder to figure it out. The only diff I see between the older somewhat working code (from November) and the newer code is that the new code uses more arrays. My weakness in PHP :(

gmak’s picture

harriska2,

I certainly don't want anyone to think that by posting here I'm bugging KarenS for a quick response. I can't begin to explain how much I appreciate the work of KarenS and all of the others who give of their time and expertise in developing Drupal and all the modules that we rely on. I hope that by posting, and updating issues, we are helping to further the development.

I wish I had more time and experience with PHP so that I could do more than be 'tester'. If we all do what we can, I hope that we'll be able to help make Drupal and the modules more robust for all.

KarenS’s picture

I've made a number of fixes to the date module, which is at least partly responsible for things mentioned in this issue, so please get the very latest cvs versions of both date and calendar modules and see how that affects things.

If you are still have problems after that, please report back exactly what you are not seeing that you expect to see (or vice versa) since the thread has gotten very confused and I'm not completely sure I understand which questions remain.

KarenS’s picture

Oops, I see we have some event dates in here too, so I need to take a look at the Event Views module as well. I thought it was mostly date module dates that were problems. Anyway, I've gotten a number of fixes made to the date module that needed to be done before making any changes here, so my next project is to start through the calendar issue queue. Hopefully I'll be able to get some of these issues resolved fairly soon.

And no problem about bugging me, as long as everyone understands that I can't always get to them right away, posting as many details about your issues as possible is helpful when I get ready to work on them.

Lowell’s picture

Some Feedback for KarenS

I just applied the lastest CVS for date.inc and date.module for Drupal 5
Let me know what code to show if you need it, these sound like similar issues as above

  1. month and week views show a stray date that I don't know how to hide. It is either the start date, the word "Start: " plus the start date, or the word "End: " plus the end date. I tried to remove the date field but then nothing shows up on the calendar at all :-)
  2. week view does not show the extra fields that I asked for in the views module, whereas the month and day views do show them
  3. week view does not show monday events (I am not using the event module, just calling the nodes with date fields events) when Drupal is set for the start of the week on monday. I believe I tested this earlier and when sunday was set as the start date, then neither tuesday nor wednesday events showed up. hmmm
  4. day view shows nicely the full start and end dates and times and includes the extra fields I added in the views fields settings

One additional thing that might be related and I haven't seen it posted anywhere yet. Might be only my installation. The week view has links for previous week and next week that were referencing the viewed week and two weeks from now respectively. I changed the following code in the calendar.module and it seems to work correctly for me now.

   case ('week'):
      $week = $path[$x]['path'];
      $year = $view->year;
      if (!$next_stamp) {
        $next_stamp = $cur_stamp;
        $prev_stamp = $cur_stamp - (604800) - (604800);
      }
      $nextpath[$x] = 'W'. gmdate('W', $next_stamp);
      $prevpath[$x] = 'W'. gmdate('W', $prev_stamp);
      break;

I hope this is info that you can use, and with a little help I will post any other required code or settings, etc.

gmak’s picture

with latest CVS for Date (including date.inc) and Calendar, the extra date field (in my case it's always the end date) is still appearing.

Lowell’s picture

KarenS

I was not able to add a node until after removing the latest CVS for date.module and .inc
It was a CCK content type with a date field that return an error claiming an invalid from date

again, let me know if there is something specific I can show you or troubleshoot myself to help out

Lowell’s picture

One more note here about date, then I'm going to look in the date issues for a fix

I had the to date setting as optional, now it is forcing a Jan 1, 2007 date and the new items don't show up on the calendar at all

wish me luck

Lowell’s picture

eeek, it might not be from the date updates, it is still doing it, and since I haven't added any of this content type in a while, I don't know where to begin to look for a solution

KarenS’s picture

Lowell, where are you finding that a January 1, 1970 date is forced? If it's on a CCK date field, please export the date field so I can see how it is set up.

Lowell’s picture

Status: Active » Fixed

This seems to be working now, Thanks

gmak’s picture

Status: Fixed » Active

I'm sorry to re-open this, but I'm still getting an extra end date field showing up in the monthly calendar view and the day view. You can see this here for month and here for day you can also see that its not happening in the week view.

I'm using the lates CVS versions for Date and Calendar.

I've removed any template functions that might have been effecting the output in the calendar.

Here's the view export for Calendar:

  $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 = '';
  $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' => '',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    array (
      'tablename' => 'event',
      'field' => 'event_start',
      'label' => '',
      'handler' => 'views_handler_field_date_small',
    ),
    array (
      'tablename' => 'event',
      'field' => 'event_end',
      'label' => '',
      'handler' => 'views_handler_field_date_small',
    ),
    array (
      'tablename' => 'node',
      'field' => 'body',
      'label' => '',
      'handler' => 'views_handler_field_body',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'term_node_3',
      'field' => 'tid',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => '4',
  1 => '5',
  2 => '6',
),
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'tid',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => '1',
  1 => '2',
  2 => '3',
),
    ),
  );
  $view->exposed_filter = array (
    array (
      'tablename' => 'term_node_3',
      'field' => 'tid',
      'label' => '',
      'optional' => '0',
      'is_default' => '0',
      'operator' => '0',
      'single' => '0',
    ),
    array (
      'tablename' => 'term_node_2',
      'field' => 'tid',
      'label' => '',
      'optional' => '0',
      'is_default' => '0',
      'operator' => '0',
      'single' => '0',
    ),
  );
  $view->requires = array(node, event, term_node_3, term_node_2);
  $views[$view->name] = $view;
harriska2’s picture

Same here. I updated date, CCK, and calendar to the newest version as of 2/22. I was going to post my exports but this issues is not marked fixed so I thought Karen was still working on it. It is a minor nit pick but the boxes for each day are so small and the date uses up lots of room :(

Lowell’s picture

This might help a little

I compared your view export with mine and I also compared your calendar test page with mine and it looks like you are referring to the date output on the same line as your test message. If this is the case then it looks to me that the following code might be the culprit

  array (
      'tablename' => 'node',
      'field' => 'body',
      'label' => '',
      'handler' => 'views_handler_field_body',
    ),

Go to your view setings and see if you are asking it to include the node body. This is where I was able to add and remove content from my calendar output.

gluck

KarenS’s picture

Status: Active » Fixed

Yes that is the answer -- I missed it but you included the body as a field and the body is going to display the date again after the calendar module has already displayed it. You can fix this either by omitting the body from your view or if you really want to see the body instead of the date the calendar module creates, add the appropriate theme from calendar.theme to your phptemplate and comment out the places where the calendar module is inserting dates.

I think that is the solution you need, so I'm marking this fixed, but you can reopen if not.

harriska2’s picture

Status: Fixed » Active

Hmm, that didn't seem to do it for me. I have all new patches for date & API (1.3 dated 2/22) and calendar (1.3 dated 2/22) and the newest CCK (1.3 dated 2/01) installed on 5.1. It still includes the date. In the view, I did not include the body.

View export:

$view = new stdClass();
  $view->name = 'calendar';
  $view->description = '';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Calendar Module';
  $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 = '10';
  $view->menu = TRUE;
  $view->menu_title = 'Calendar Module';
  $view->menu_tab = FALSE;
  $view->menu_tab_default = FALSE;
  $view->menu_tab_weight = '0';
  $view->sort = array (
  );
  $view->argument = array (
    array (
      'type' => 'calendar_year',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
    array (
      'type' => 'calendar_month',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
    array (
      'type' => 'calendar_day',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => '',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    array (
      'tablename' => 'node_data_field_cvs_date',
      'field' => 'field_cvs_date_value',
      'label' => '',
      'handler' => 'content_views_field_handler_group',
      'options' => 'default',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'modules',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, node_data_field_cvs_date);
  $views[$view->name] = $view;

And the export of the CCK type:

$content[type]  = array (
  'name' => 'Modules',
  'type' => 'modules',
  'description' => '',
  'title_label' => 'Title',
  'body_label' => '',
  'min_word_count' => '0',
  'help' => '',
  'node_options' => 
  array (
    'status' => true,
    'promote' => false,
    'sticky' => false,
    'revision' => false,
    'revision_moderation' => false,
  ),
  'comment' => 2,
  'upload' => '1',
  'old_type' => 'modules',
  'orig_type' => '',
  'module' => 'node',
  'custom' => '1',
  'modified' => '1',
  'locked' => '0',
);
$content[fields]  = array (
  0 => 
  array (
    'widget_type' => 'options_select',
    'label' => 'Version',
    'weight' => '-4',
    'description' => '',
    'field_version' => 
    array (
      'key' => false,
    ),
    'default_value_php' => '',
    'group' => false,
    'required' => '0',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '5
4.7',
    'allowed_values_php' => '',
    'field_name' => 'field_version',
    'field_type' => 'text',
    'module' => 'text, optionwidgets',
    'default_value' => 
    array (
    ),
  ),
  1 => 
  array (
    'widget_type' => 'date_select',
    'label' => 'CVS Date',
    'weight' => '-3',
    'select_day' => '1',
    'select_month' => '1',
    'select_year' => '1',
    'years_back' => '3',
    'years_forward' => '3',
    'increment' => '1',
    'description' => '',
    'group' => false,
    'required' => '0',
    'multiple' => '0',
    'granularity' => 
    array (
      'Y' => 'Y',
      'M' => 'M',
      'D' => 'D',
    ),
    'todate' => '',
    'input_format' => 'site-wide',
    'input_format_custom' => '',
    'output_format_date' => 'm/d/Y',
    'output_format_zone' => '',
    'output_format_custom' => '',
    'output_format_date_long' => 'm/d/Y',
    'output_format_zone_long' => '',
    'output_format_custom_long' => '',
    'output_format_date_medium' => 'm/d/Y',
    'output_format_zone_medium' => '',
    'output_format_custom_medium' => '',
    'output_format_date_short' => 'm/d/Y',
    'output_format_zone_short' => '',
    'output_format_custom_short' => 'None',
    'tz_handling' => 'site',
    'field_timezone' => 'GMT',
    'field_name' => 'field_cvs_date',
    'field_type' => 'date',
    'module' => 'date',
  ),
  2 => 
  array (
    'widget_type' => 'text',
    'label' => 'CVS Version',
    'weight' => '0',
    'rows' => '1',
    'description' => '',
    'field_cvs_version' => 
    array (
      0 => 
      array (
        'value' => '',
      ),
    ),
    'default_value_php' => '',
    'group' => false,
    'required' => '0',
    'multiple' => '0',
    'text_processing' => '0',
    'max_length' => '',
    'allowed_values' => '',
    'allowed_values_php' => '',
    'field_name' => 'field_cvs_version',
    'field_type' => 'text',
    'module' => 'text',
  ),
);
harriska2’s picture

FileSize
5.19 KB

Attached is a screenshot

KarenS’s picture

Status: Active » Fixed

The date module will display the title and date by default. That is by design. If you don't want to see *any* date in the calendar, add the appropriate theme from calendar.theme to your phptemplate and comment out the places where the calendar module is inserting dates.

KarenS’s picture

Just to explain further, I can see that there are times when you won't want to see the dates, but since this module is designed to work with all kinds of date fields there are also times when you will want to see the dates, so that's why for now at least I'm just proposing you handle this with themeing if you don't like the default. There may be niftier ways to do it in the future, but my focus right now is getting basic functionality working and that is taking all the time I have for this project.

harriska2’s picture

I went ahead and remmed out all the references to $node->calendar_start and end in the calendar.theme file. Worked like a charm for the day, week, and month view.

Thanks a ton.

Anonymous’s picture

Status: Fixed » Closed (fixed)