I am experiencing some strange things happening with calendar and views modules. let me explain the scenario .

-select the calender views option and try to configure the date argument form a date field defined with cck.

-in the configuration for this field i make the current date the default value but this does not return any value however the query seems to return values when run in the database.

-When i export and import this views in another installation all argument related configuration is lost.

Has anyone experienced a similar ? Any ideas what the problem might be ?

Comments

13rac1’s picture

Category: support » bug

Argument from content date works correctly for me, but otherwise I have same issue using Views/Calendar with Features module.

I am using Features to automatically do sync features between multiple Drupal instances. When I enable a Feature containing a Calendar, the view is broken because the Default argument type has been reset to the default of "Fixed entry". View import or export is not working correctly with Calendars.

kmonty’s picture

sub

iStryker’s picture

I have the same problem. Its a problem with Views export. @eosrei: features uses views' import/export. When you export with default argument type as 'fixed entry' you create the code below

/* Argument: Date: Date (node) */
$handler->display->display_options['arguments']['date_argument']['id'] = 'date_argument';
$handler->display->display_options['arguments']['date_argument']['table'] = 'node';
$handler->display->display_options['arguments']['date_argument']['field'] = 'date_argument';
$handler->display->display_options['arguments']['date_argument']['default_action'] = 'default';
$handler->display->display_options['arguments']['date_argument']['style_plugin'] = 'default_summary';
$handler->display->display_options['arguments']['date_argument']['default_argument_type'] = 'fixed';
$handler->display->display_options['arguments']['date_argument']['date_fields'] = array(
'node_data_field_date.field_date_value' => 'node_data_field_date.field_date_value',
);

When you have default argument type as 'Current date' you create the code below. Notice there is no default_argument_type
/* Argument: Date: Date (node) */
$handler->display->display_options['arguments']['date_argument']['id'] = 'date_argument';
$handler->display->display_options['arguments']['date_argument']['table'] = 'node';
$handler->display->display_options['arguments']['date_argument']['field'] = 'date_argument';
$handler->display->display_options['arguments']['date_argument']['default_action'] = 'default';
$handler->display->display_options['arguments']['date_argument']['style_plugin'] = 'default_summary';
$handler->display->display_options['arguments']['date_argument']['date_fields'] = array(
'node_data_field_date.field_date_value' => 'node_data_field_date.field_date_value',
);

NickDickinsonWilde’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

6.x is entirely unmaintained.