I’ve been googling up and down for two hours now *grins* so it’s time to ask for some help that I’ve not been able to find an answer to.
I have a date TV that holds an event’s start date. I want to filter out any documents where the date TV (EventStartDate) is older than the current date, so that I can display all the future events, and later do the reverse to list past events.
The EventStartDate TV is using the Unix timestamp widget and the sorting is working fine.
Here’s the Ditto call at present.
[!Ditto? &filter=`EventStartDate,3,@EVAL return time();` &tpl=`Events` &sortBy=`EventStartDate` &sortDir=`ASC` !]
Nothing is being filtered at all, whether or not it is greater or lesser than todays date.
So what’s up with my filter? I keep reading about a "Debug Console" but haven’t worked out how to open it?
I’ve probably done something rather stupid so forgive me if that’s the case, I’ve just started using ModX today to see if it will work for the client’s needs.
Ta in advance.