I’ve been trying a couple of things, but I can’t seem to get the results I need. I hope you can help me out!
Situation:
I’m using XML-grab to import an xml-feed of events. I can’t change anything on the input of the xml-feed. Therefor I have to post the date of an event in a custom field. The format looks like this:
- 20-4-2010 (= April 20th 2010)
- 8-12-2010 (= December 8th 2010)
What I want:
I want to show all events from today until the end of the month. Beware that I can’t use the date from each entry, I have to use the custom field.
Here’s what I got so far:
{exp:weblog:entries
weblog="events"
limit="10"
search:event_date="{current_time format='%n-%Y'}"
start_on="{current_time format='%j-%n-%Y 00:00'}"
orderby="event_date|event_place" sort="asc|asc"}
[..]At the moment the search:event_date does what I expected: it searches for all entries in this month.
By posting this I realise the start_on parameter looks at the entry-date, and I can’t use that. So here’s my question: is there any way to make sure I don’t see past events?