Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to list events currently taking place? #81

Open
tomkiss opened this issue Jul 4, 2022 · 0 comments
Open

How to list events currently taking place? #81

tomkiss opened this issue Jul 4, 2022 · 0 comments

Comments

@tomkiss
Copy link
Contributor

tomkiss commented Jul 4, 2022

Hello,

I'm using this plugin's fieldtype on event entries, and in my templates I'd like to display a list of all the currently active events. Most of these events repeat annually; e.g: June 1st to June 30th Pride month, June 30th to August 20th Summer Sale or December 20th to December 27th Christmas season etc.

In my template then, I'm simply looking to say "The day is today, show all events that are currently taking place" (i.e: todays date falls between the before and after dates set on an entries calendarize field).

I can just about achieve this using some of the plugin functionality and twig loops etc, although my template code is a little heavy handed and I wanted to ask the plugin creators how they would achieve this data extraction.

Any help appreciated, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant