Skip to content

Events:between pagination and limit not working #145

@kevinkosterr

Description

@kevinkosterr

Hi, I came across a bug with events:between having no support for pagination and limit parameters. When supplied, no items are rendered. The example from the documentation on the Statamic add-on page does not work.

The events render fine, however the pagination won't be there. Furthermore, supplying a limit parameter seems to completely break it.

{{ events:between collection="events" from="Jan 1 2022" to="March 31 2022" paginate="2" }}
  {{ results }}
    ...entry data as explained above
  {{ /results }}
  {{ pagination }}
    {{ if prev_page }}<a href="{{ prev_page }}">Previous</a>{{ /if }}
    {{ if next_page }}<a href="{{ next_page }}">Next</a>{{ /if }}
  {{ /pagination }}
{{ /events:between }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions