You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reopening this. I don't think this is solved (sorry)
My date field in contenttype.yaml:
date_to:
type: date
default: "first day of this month"
My query: {% setcontent agenda = 'agenda' where { date_to: '>today' } limit 30 orderby 'date_to' printquery %}
My output:
SELECT content FROM Bolt\Entity\Content content LEFT JOIN content.fields fields_order_3 LEFT JOIN fields_order_3.translations translations_order_3 WHERE content.contentType = :ct0 AND content.status = :status_1 AND (content.id IN(SELECT content_3.id FROM Bolt\Entity\Content content_3 INNER JOIN content_3.fields fields_3 INNER JOIN fields_3.translations translations_3 WHERE (JSON_EXTRACT(LOWER(translations_3.value), '$[0]') > :date_to_1 OR LOWER(translations_3.value) LIKE :date_to_1_JSON) AND fields_3.name = :field_3)) AND fields_order_3.name = :order_3 AND translations_order_3.locale = :order_3_locale ORDER BY lower(translations_order_3.value) ASC
ct0: agenda
date_to_1: today
status_1: published
field_3: date_to
date_to_1_JSON: %"today"%
order_3_locale: nl
order_3: date_to
For example
{% setcontent agenda = 'agenda' limit 4 where { enddate: '>today' } printquery %}
gives:The
- enddate_1: today
should hold a date, and not the literal string "today"The text was updated successfully, but these errors were encountered: