3 votes
Accepted

Sorting all matrix fields from multiple entries as one list

Yes, you can do that with matrix block queries. Instead of going through entries to get the matrix blocks, you can query matrix blocks independently with a custom sort order. {% set notesByDate = ...
user avatar
  • 6,820
3 votes

Display entries if Field Date is past Now

Craft has changed since the above answer was given. The now object must be a part of the string, rather than concatenated as an object. so instead of: {% set futureEntries = craft.entries.section('...
user avatar
2 votes

Query Entries only with postDate last of month

You can use the LAST_DAY function if you're working with MySQL. To only get entries with a postDate on the last day of the month, you can check if LAST_DAY(postDate) is identical with DATE(postDate). {...
user avatar
  • 6,820
1 vote
Accepted

Checking for a valid date in a query string parameter using Twig

Parse, don't validate. Instead of validating the format, which will get complicated fast, parse it as a date and see if it works or not. The simplest solution is something like this: {% set dateParam =...
user avatar
  • 6,820

Only top scored, non community-wiki answers of a minimum length are eligible