I notice that this problem has already been raised but no reply to it - I was wondering whether you need to set the arguments in the panels page in order to pass these to the View, and if so how do you do this? The whole passing of arguments and contexts I find very confusion and would be grateful for any pointers.
I'm using Panels 3 by the way, and latest versions of Views and Calendar

Comments

Adam S’s picture

Calendar 6.x-2.2
Chaos tool suite 6.x-1.2
Date 6.x-2.4
Panels 6.x-3.2
Views 6.x-2.7
Drupal 6.14

I had the problem where the calendar embedded in the panel would not advance to the next month. Then I used a patch by installing a module called date-fix. It worked (not with the configuration listed above.) Being dutiful I upgraded all my modules. I'm not sure when it broke but it stopped working. You can see how it function at http://thetriton.com/events . Is there a known fix for this situation?

Here is the module I installed that worked for a little while:

<?php
// $Id$
/**
 * Implementation of hook_views_pre_view().
 * in order to fix calendar browsing:
 * http://drupal.org/node/395936#comment-1896488
 */
function date_fix_views_pre_view(&$view, &$display_id, $args) {
  if ($view->name == 'event_calendar' && $display_id == 'calendar_1') { 
    // dsm($view->name);
    // dsm($display_id);
    $view->date_info->block_identifier = 'mini';
  }
}

Adam S’s picture

My problem was that I had turned the cache on inside the settings area inside the content area of panels. I would advise people to not set the panels or the views cache when embedding the calendar inside of panels.

With my configuration above making a mini module with that code everything works just fine and dandy. If you have not followed the link in the code box above, then do so and read the issue. It solved the problem for me as long as I don't set the panels cache.

I'm still running cache router and it's running just fine.

joel_guesclin’s picture

Thanks for that - I will maybe try this although I am trying to minimise the number of bits and pieces on my site - I agree with those who say that this should go into the core of the module itself.

KarenS’s picture