Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

DateRange Issues

Started by Muut Archive 10 years ago · 3 replies · 367 views
10 years ago

I'm having some trouble getting the dateRange to work on an events page. I have the date's set for all of my child pages, but when I add the dateRange start to today nothing is showing up. I've even tried setting the date to an actual date with no luck. Here is what my main event's page collection looks like:

YAML
content:
    items: '@self.children'
    limit: 6
    order:
        dir: asc
        by: date
    dateRange:
        start: today
    pagination: true
    url_taxonomy_filters: false

And here is a sample of an events data:

YAML
title: 'Bingo + Ice Cream Social'
date: '28-04-2016 18:00'

and another that wouldn't be expired:

YAML
title: BBQ
date: '30-07-2016 12:00'

Any help is appreciated. I'm sure it is something small that I'm just missing.

10 years ago

Thank you! Adding in an end parameter worked perfectly. In the docs it says both start and end are optional. Is that incorrect then?

10 years ago

Sounds like the docs might need an update!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1124 9 years ago