Skip to content

Veranstaltungsreihen#151

Open
Uatschitchun wants to merge 3 commits intostudio-arrenberg:mainfrom
Uatschitchun:multiday_events
Open

Veranstaltungsreihen#151
Uatschitchun wants to merge 3 commits intostudio-arrenberg:mainfrom
Uatschitchun:multiday_events

Conversation

@Uatschitchun
Copy link
Collaborator

Adds option to add events lasting multiple days with adding an 'event_end_date' field

TODO:

  • Translations

This allows adding multiday events (Mehrtagesveranstaltungen - called them Veranstaltungsreihe) by adding an end date to an event. This is useful for things like "call to actions" or "Beteiligungsverfahren".

This should (partly) fix #135

Recurring events, like daily, weekly, monthly events (Stammtische, etc. ) are more complex to add, as it needs loops to create multiple single events and it needs loops to edit, delete, etc. those events. It even would be possible to have those events recurring x-times or until some date, etc. Some events, like 'Quartierstreffen' or others take place on every last friday in a month, every third monday, etc. ... would be a nice to have, but it's still a Quartiersplattform, not a calendar ;)

Open for comments and testing ;)

* Adds option to add events lasting multiple days with adding an 'event_end_date' field

TODO:
* Translations
@Uatschitchun
Copy link
Collaborator Author

Ups, there's a problem I've only noticed when testing in production regarding looking at a Projekt. It shows wrong Veranstaltungen.

uatschitchun added 2 commits April 1, 2023 21:39
* Adds tax_query to components/project/events.php again as it was lost during coding
* Should fix the sorting order of events:
The array now checks (event_date >= today) OR (event_date < today AND (event_end_date >= today OR event_end_date =""))
Hoping thats how it should be
* Change & improve meta_queries and sorting in components/project/events.php, components/views/veranstaltungen.php & pages/single-veranstaltungen.php
* Changed "Veranstaltungsreihe" to "Aktion" for to leave place on elements/card-veranstaltungen.php to be able to display long date (like '30. September - 30. September) and still use qp_date
* Changed and added "Uhr" as it looks and feels more natural and use translations all over
@Uatschitchun
Copy link
Collaborator Author

This should do it now

@Uatschitchun
Copy link
Collaborator Author

Uatschitchun commented Apr 2, 2023

I've put it into production. Take a look at Hammesberg to see it in action

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

Successfully merging this pull request may close these issues.

Mehrtages-Veranstaltungen

1 participant