How would you combine multiple logical expressions on a ElementCriteriaModel parameter?
You could query twice and then merge the two returned arrays of entry models,
but that probably wouldn't allow me to later use the {% paginate %}
tag or methods like getNext()
.
Here's an example where I'd like to filter events starting in calender week 32 or 34:
{% set dateParamCw32 = 'and, >= 2014-08-04 00:00:00, < 2014-08-10 23:59:59' %}
{% set dateParamCw34 = 'and, >= 2014-08-18 00:00:00, < 2014-08-24 23:59:59' %}
{% set startDateParam = 'date range cw32 OR cw34' %}
{% set entries = craft.entries.section('events').startDate(startDateParam) %}