tighten / craft-build-query

A plugin for Craft CMS, demonstrating how to build complex or optimized queries by modifying an ElementCriteriaModel.
MIT License
39 stars 3 forks source link

Using native craft filters #4

Open mofman opened 7 years ago

mofman commented 7 years ago

I was under the impression this would extend the funionality of native craft entries filters. But its appears like it ignores my relatedTo filters. Any advice on how I can reimplement that functionality quickly?

{% set events = craft.entries.section('whatsOn').relatedTo(eventType) %} {% for event in craft.killercore.source(events).dateRange(startDate, endDate).find() %}

Above is what I've tried but like I said relatedTo seems to be ignored when I pass it though to my new service.