Filtering companion to Reflect or other date based filtering
| Date Filter | Filtering companion to Reflect or other date based filtering |
| Parameters | |
| dateFilterSource | Source for the day, month, and year to filter by |
| dateSource | Source of the [+date+] placeholder |
| dateFilterDefault | Determine the default filter |
| month | Month to filter by |
| year | Year to filter by |
| day | Day to filter by |
| Placeholders | |
| year | Year being filtered by |
| month | Month being filtered by |
| month | Numeric version of the month being filtered by |
| day | Day being filtered by |
Source for the day, month, and year to filter by
| get | gets the value of year, month, and day from the URL (pre-appended with the Ditto ID) |
| params | gets the value from the snippet cal |
| text | name of the request variable to use |
get
Source of the [+date+] placeholder
| # | Any UNIX timestamp from MODx fields or TVs such as createdon, pub_date, or editedon |
”createdon”
Determine the default filter
| 0 | filter off |
| 1 | current year |
| 2 | current year and month |
| 3 | current year, month, and day |
0