I'm pretty sure you need to add the date field to the view's Fields list. If you don't want to actually show the date in your view output, you can check "Exclude from display"
Oooo... an one other thing: Make sure you are using the same date field in your filter. From your description above, you might be using the node date, and not the cck date from field date.
Arlin,
Thanks for your response. The date fields that I added with CCK are included in the View's field list. They are in the form of a "From" and a "To" date and are listed as:
When I attempt to add the filter, however, these items don't appear in the list to choose from under the "Content" group (or any other, for that matter). When I select "Date: Date (node)Filter any Views node date field.", I get a list of date fields to select from which includes "Content: Date (field_event_date) - From date" and "Content: Date (field_event_date) - To date". When I choose either of these and apply the conditional statement, I get the aforementioned "date field missing" error.
Hmmm, ok I am following along a little better now.
I can reproduce the error if I fail to check a date field when creating the filter, but it sounds like you are checking it...
If you click that gear icon next to "Date: Date (node) Missing date fields!", is your "Content: Date (field_event_date) - From date" still checked?
I deleted and recreated the filter in question. When I first hit update, it gives me the error. When I click on the gear icon, it shows me the settings screen I just went through, only none of the changes I made to my settings are there - just the defaults. I make the changes again and click update. Now the error is gone, and it shows me the following:"Date: Date (node) Content: Date (field_event_date) - From date >= ". The problem here is that it doesn't let me tell it what the date is supposed to be greater than or equal to. I'm not sure where to put in the argument to go with the "greater than or equal to" operator.
On the screen to configure Date: Date (node), where I set the operator, there are two fields at the bottom labeled "Date default:" and "To date default:". These appear to be defaults for use if the filter is exposed, which mine is not. Furthermore, if I try putting anything in these fields, my aforementioned error returns.
I'm sure I'm missing something obvious. Thanks again for all of your help.
Drupal 6 newbie question:
As per the Geeks & God episode on Drupal Church Recipes, I am attempting to implement an event system using Views, CCK, and Date Module instead of using the Event module. I have created a content type called Events with the following fields:
I want to create a View called Upcoming Events which will filter out any events that have already passed. Seems simple enough. I have created this view and added the following fields:
Node: Title Title
Content: Date - From date Long
Content: Date - To date Long
Location: Address Address
Location: Street Street
Location: City City
Location: Province State
Location: Postal Code Postal Code
Content: Cost Plain text
Node: Body Description
Content: Image teaser_image image linked to node
Taxonomy: All terms Categories
Node: Type Type
I have set up the following filters:
Node: Published Yes
Node: Type = Event
Settings
Date: Date (node) Missing date fields!
The date filter is supposed to be filtering on "Content: Date (field_event_date) - From date" >= now. Yet, for some reason, I get the "Missing date fields!" error (as seen above).
I'm at my wit's end! Can anyone tell me what I'm doing wrong?! I'm sure it's something minute and obvious, but it is eluding me.