I've created a CCK event node and I'm using Views and Calendar to list them.

(not sure if this is a Views or Calendar issue)

I began by overriding the default calendar view, and changed the type of view from "Calendar" to "Table."

Everything works kosher, except the third argument doesn't seem to be automatically "put in," so I am left with a "month" list instead of a "day" list. The heading in the calendar displays the month and year, not the day as expected.

When I click on the arrows to change the calendar, it moves a month, and the url says "/2007/10," even though three arguments are present: Calendar: Year [display all values], Calendar: Month [display all values], Calendar: Day [display all values].

It had said "/2007/10/all" before, but I removed the wildcard "all."

HOWEVER - if I type three arguments into the url - "/2007/10/8" I am presented with the proper Calendar heading (October 8, 2007), and clicking the arrows takes me up or down a day.

But when I navigate to the view's url, it gives me the "month" view instead of the "day" view, so somehow the day argument isn't being recognized.

If I delete the "Calendar: Day" argument, I have a "month" list that operates as you'd expect, but it operates exactly like my mal-functioning "day" list.

I've tried putting code into the Argument handling code area to force the arguments to today, and it does that, except it always forces it, even when the Calendar arrows are pressed and the URL changes:

$args[0] = date(Y);
$args[1] = date(m);
$args[2] = date(d);

I've also tried this:

$url = request_uri();
if ($url = 'http://www/example.com/view_path') {
   $args[0] = date(Y);
   $args[1] = date(m);
   $args[2] = date(d);
}
$view->is_cacheable = 0;

It properly gives me the day, date and year, but it gets "stuck" on "today." (the calendar arrows change the url, but the view doesn't change.

So, I have no idea where to turn. I would have expected that since there are three arguments given that the view would have created the url to be /YYYY/MM/DD instead of /YYYY/MM. I only need Year and Month arguments to create /YYYY/MM, so there must be something missing somewhere.

Hope someone has an easy fix for this.

Comments

m1mic’s picture

Status: Active » Closed (duplicate)

This is a duplicate post. Please see Node 175983.