Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have content query web part for displaying the future events. But the web part is displaying the past events as well. For example, I had two events in March and 3 in April. It shows all five event. I want it to show only April events.

share|improve this question
add comment

1 Answer 1

Look in the web part properties for the filter settings. You can choose a date column and date filter criteria to apply to the content query web part. For example, you can configure a filter on an Announcements list for items created "greater than" today.

See more on standard filters a similar thread on MSDN Forums.

If the field you want is not displayed in the filters list, download the .dwp file and modify it manually to add the field. MSDN has a walkthrough of the specific steps required.

Created and Modified are in the filter list but not some other time and date fields. For example, the start date and end date fields of a calendar list are supported by the content query web part when you manually edit the .dwp and add the fields in as described on MSDN.

share|improve this answer
    
There is no "Time and Date" column in the filter options. –  Gravity M Apr 3 '13 at 14:34
    
What is your source list? A time and date column in the announcements list for example, is named created. –  Tom Resing Apr 3 '13 at 19:59
    
My source list is just a calender and we add events to it –  Gravity M Apr 4 '13 at 16:10
    
Updated my answer for a calendar list. Created and Modified are in the filter list but not some other time and date fields. For example, the start date and end date fields of a calendar list are supported by the content query web part when you manual editing the .dwp and add the fields in as described on MSDN. –  Tom Resing Apr 5 '13 at 17:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.