Date Filter

Purpose

Filtering companion to Reflect or other date based filtering

Summary
Date FilterFiltering companion to Reflect or other date based filtering
Parameters
dateFilterSourceSource for the day, month, and year to filter by
dateSourceSource of the [+date+] placeholder
dateFilterDefaultDetermine the default filter
monthMonth to filter by
yearYear to filter by
dayDay to filter by
Placeholders
yearYear being filtered by
monthMonth being filtered by
monthNumeric version of the month being filtered by
dayDay being filtered by

Parameters

dateFilterSource

Purpose

Source for the day, month, and year to filter by

Options

getgets the value of year, month, and day from the URL (pre-appended with the Ditto ID)
paramsgets the value from the snippet cal
textname of the request variable to use

Default

get

dateSource

Purpose

Source of the [+date+] placeholder

Options

#Any UNIX timestamp from MODx fields or TVs such as createdon, pub_date, or editedon

Default

”createdon”

Related

dateFilterDefault

Purpose

Determine the default filter

Options

0filter off
1current year
2current year and month
3current year, month, and day

Default

0

month

Purpose

Month to filter by

Options

#Number between 1-12 (inclusive) that corresponds to the month to filter by

Default

[NULL]

year

Purpose

Year to filter by

Options

#Any numerical year (4 numbers; ex: 2006)

Default

[NULL]

day

Purpose

Day to filter by

Options

#Any numerical day within the current month

Default

[NULL]

Placeholders

year

Content

Year being filtered by

month

Content

Month being filtered by

month

Content

Numeric version of the month being filtered by

day

Content

Day being filtered by

Format the [+date+] placeholder in human readable form