I'm new to Orchard CMS and trying to create a query that will filter a list of upcoming events date. What I want to do is filter a list of upcoming events. I have set up a list and plan to use the creation date (setting the date to the event date) as filter. Where I have ran into an issue is getting the filter value to work. When I set the filter value to {DateTimeField.Date} for get the current date or any of the other date options, the filter does not work. It show all events. When I manually type in the value field "2014-08-20", it works. Any ideas of why I can not set the date to the current date?
I have also tried creating just a date field within the content definition and received the same issue as above. I do plan to create a Event End Date that will not show, but will be used to filter. I assume the value will be very similar though to what would be needed for the creation date though.
I am using Orchard CMS 1.8.0
Any help will be greatly appreciated.
DateTiemField
? Where are you using that? – Bertrand Le Roy{DateTimeField.Date}
to be?DateTimeField
, in this token description, stands for an actual date time field token. So for example,{Content.Fields.SomePart.SomeDateFieldOnThatPart.Date}
would be a valid instance of that token. I think what you're looking for is the current date, which would be given by{Date}
. – Bertrand Le Roy{Date}
I receive the same output, all for listings. When I entered 2014-8-22, I received just 2 items, which would be correct. I do appreciate your help with this matter. – Joe P{Date.Format:yyyy-MM-dd}
. I assume the format that{Date}
was not in the same format. Thank you @Bertand-Le-Roy for your help. I now better understand the queries feature since to you. – Joe P