studioespresso / craft-date-range

Date range field for Craft CMS
MIT License
12 stars 6 forks source link

Add documentation #7

Closed ockam closed 4 years ago

ockam commented 4 years ago

Please, if possible, add some documentation on using the query behavior in a query.

Following your suggestion on Discord, i have successfully been able to make this query work:

craft.entries().section('publications').isOnGoing('fieldHandle').all()

But now, I need to check 2 date range fields with a orWhere query. Please advise.

janhenckens commented 4 years ago

Done! https://github.com/studioespresso/craft-date-range#element-querries

ockam commented 4 years ago

queries only takes one r

janhenckens commented 4 years ago

Oops, fixed :)