Pete
-
10/23/2013 10:21:29 AM
Smart Search Filter by month
Hi,
this seems like a simple task but I have been stuck with it for hours.
I want to have a filter on the news page where user can select month and year. When submitting the page it populates with relevant results based on NewsReleaseDate.
I have created two smart search filters - one for month and one for year. However I am not sure what I should add to the 'Values' field.
For a 'Year' field I ended up with
+_NewsReleaseDate.Year;{% CurrentDateTime.Year - 2%}
but this does not work.
Could someone point me in the right direction, please?
Also is there a way to list all months in the dropdown other than typing each month explicitly?
Thanks,
Pete
|