My test site:
Drupal core : 7.0
views : 7.x-3.0-alpha1
date: : 7.x-1.0-alpha1
calendar : 7.x-1.0-alpha1

My test step:
(1) clone the default calendar views and save as a new test calendar.
(2) delete field in Arguments, and add my date field to Arguments.
(3) add my date field to Fields section.
(4) calendar page preview do not show any event I've created.
(5) change Arguments from my date field to node update date field.
(6) calendar page preview show events as usual.

Anyone could help ??

Comments

pivica’s picture

subscribing

karens’s picture

Status: Active » Fixed

Views made lots of changes to field handling just before the new release, which broke lots of things here. I issued a new release with some work-arounds to get things working again and am waiting until the dust settles on how the new core fields will be handled in Views before doing much more with the Views integration. These changes should get things working with latest Views release.

gorillaz.f’s picture

yeah~ it works with date & calendar alpha2 , thank you ~

sven.lauer’s picture

Version: 7.x-1.0-alpha1 » 7.x-1.0-alpha3
Status: Fixed » Active

Reopening this because I think this probably has to do with this issue.

Using alpha3 of both modules, the calendar page display works fine regardless of which argument is used, but as soon as I switch to using a date field as argument, the block view stops displaying any events (i.e. it does not display links for any of the days, but instead looks as if there were no events).

David van Diepen’s picture

I am experiencing the exact same thing as sven.lauer.

sven.lauer’s picture

Title: Calendar do not show event using customize date field in Arguments » Calendar do not show event (in Block view) using customize date field in Arguments

Investigating a bit, I find that, in calendar-datebox.tpl.php $selected is TRUE for days that have events, and consequently, $link is displayed---but $link is no link, but simply the day.

In the preprocess function for that template, we find:

   $vars['link'] = !empty($view->date_info->display_types['day']) ? l($vars['day'], $vars['url']) : $vars['day'];

I am not sure what the test is there for, and my knowledge of calendar/view internals is limited, but I thought it might tip someone else off ....

Renegadez’s picture

I have my original calendar running fine for a private calendar I need a public permissions calendar so I created a clone version as stated below the same steps as op in post 1.
I create an event under the new public calendar event content type I post the event and it shows promoted to my front page, but do not show up in my calendar view on the public calendar.
Now both the original private (default) calendar look the same as the new cloned (public) calendar except I changed the argument to the new argument to be used for public and the name so i can tell them apart

BUT i notice under the
CALENDAR PAGE > Basic settings >Machine Name: calendar_1
Is the same in both calendars is this the problem?? or is something else? Thanks

My test site:
Drupal core : 7.0
views : 7.x-3.0-alpha1
date: : 7.x-1.0-alpha2
calendar : 7.x-1.0-alpha3

My test step:
(1) clone the default calendar views and save as a new test calendar.

(2) delete field in Arguments, and add my date field to Arguments. EXample: Arguments
Date: Date (node) Fields: field_pub_calendar_event

(3) add my date field to Fields section.
(4) calendar page do not show any event I've created.

Thanks

rublev_green’s picture

I have similar configuration
views : 7.x-3.0-alpha1
date: : 7.x-1.0-alpha2
calendar : 7.x-1.0-alpha3

List of events.
Default(just after installation) calendar view shows all events on the dates they were created (everything on one day pretty much).
After changing argument to the actual 'Date: Date (node) Fields:event_date' value no events are shown.
Under Fields section tried with or without event_date field.

Also noticed that if in default configuration I remove 'Node: Updated date' from Fields calendar also becomes empty.

Thanks for any help

Renegadez’s picture

Is it possible the Content Type EVENT DATE was created incorrectly or does not have datetime selected? that happened to me the first time I created it also I used the SORT under views and used the same event_date and selected descended at the bottom of the page to make sure the calendar sorted the days correctly sorry i am way new to this to

rublev_green’s picture

Thanks Renegadez, you're right, field was just Date, after changing it to DateTime, events start to appear.

Renegadez’s picture

@ rublev_green Awesome glad I actually helped someone back!!

harriska2’s picture

Drupal core : 7.0
views : 7.x-3.0-alpha1
date: : 7.x-1.0-alpha2
calendar : 7.x-1.0-alpha3

Same as original poster. Although if I use updated date for the argument I get all postings (and all types) listed in the calendar.

Nevermind - my original field was not of datetime - that seemed to fix my first problem. Then I got caught by the argument issue - add the date: date (node) and from there add my date field. Ugh - you'd think I'd get that by the second time...

Renegadez’s picture

I use Content Type EVENT DATE with datetime in 3 places

argument
fields
sort and I sort by desc

I learned this from the is badass 10 minute video got drual site rocks check it out Thanks

http://gotdrupal.com/videos/drupal-calendar

David van Diepen’s picture

Thank you Renegadez, your last post helped me out too. Apparently the custom datetime field has to go into those 3 places as you indicated otherwise the calendar view won't work.

agdjenn’s picture

Version: 7.x-1.0-alpha3 » 7.x-1.x-dev

My custom datetime field is not showing up under the "Date Fields" check boxes.

Renegadez’s picture

@agdjenn did you this your issue figured out?

tbenice’s picture

having the same issue, using datetime field in a custom content type. Date shows fine in page view but not in block

tbenice’s picture

Hi All, I have a workaround until this issue is worked out. Create a new block with php and enter print(views_embed_view('calendar', 'calendar_1'));
this will embed the page view into a block.

arlinsandbulte’s picture

Status: Active » Postponed (maintainer needs more info)

#1094408: Date field not showing up in views arguments in localized site might have affected or fixed this issue.
Please verify this issue exists with the March 28 -dev

sven.lauer’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

This issue has gone away for me a while ago, so I assume that @arlinsandbulte supposition was right.