-
-
Notifications
You must be signed in to change notification settings - Fork 600
Closed
Labels
Description
Bug Description
I've got an antlers statements that I feel should work but doesn't. I ended up making a custom modifier.
{{ if pin:event_date|is_today || pin:event_date|is_future }}
{{ if (pin:event_date|is_today) || (pin:event_date|is_future) }}
pin is an entries field with max_items: 1.
How to Reproduce
- Give a blueprint a field called
event_date. - Use the entries field to add events to a page for example.
- Loop through the entries.
- Use the above logic in your template.
Extra Detail
Environment
Statamic 3.0.20 Pro
Laravel 7.28.4
PHP 7.4.10
edalzell/mailchimp 2.1
jonassiewertsen/statamic-livewire 2.1.1
