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

Upcoming not including "started" multi-day events #41

Open
mikestecker opened this issue Oct 18, 2019 · 2 comments
Open

Upcoming not including "started" multi-day events #41

mikestecker opened this issue Oct 18, 2019 · 2 comments

Comments

@mikestecker
Copy link

I know upcoming implies not started yet, but I'd like to be able to show events that span multiple days until they end before they drop off, is there a way to do this?

@mikestecker
Copy link
Author

Update: I thought I'd be clever and just backdate a week using .after, however this doesn't work either.

For example:

        {% set order = 'asc' %}
        {% set unique = true %}
        {% set startDate = now|date_modify('-1 week')|date('Y-m-d') %}
        {% set events = craft.calendarize.after(startDate, { section: ['news'], type: 'event' }, order, unique) %}

However, I put in a test event that is All Day, spanned from the day before today and went a number of days. This event wouldn't output unless the start date has not occurred yet. If the start date is prior to the current day/time, then the event simply won't show.

Is there any way to be able to show an event while it is considered "active" on multi-day events?

Thanks!

@mikestecker
Copy link
Author

I just realized this is related to #27

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