I’ve done a little website to show a few MODx patterns, and that’s one of the patterns - a list of upcoming events with past ones filtered out.
I’m trying to find time to make a good annotation document, but not finished it yet. However, each page in my site reveals the snippet calls and chunks, so you ought to be able to figure it out. It’s here :
http://www.tgsketches.me.uk/cranford/
You’ll need to know how to define the template variables:
eventDate input type Date, output type Date, Date format %A, %d %B %Y (or whatever you’d prefer). Set ‘If no value, use current date’ to ‘No’ .
todayDate input type Date, output type Date, Date format %A, %d %B %Y (or whatever you’d prefer). Set ‘If no value, use current date’ to ‘Yes’ .
I’m afraid I got carried away and did the site in Victorian style, including bizarre fonts and Victorian colours.
If you have any comments on whether it solved your problem and whether it made sense, I’d like to know. There may be things I still need to explain.
Thomas