Open
Conversation
* Adds option to add events lasting multiple days with adding an 'event_end_date' field TODO: * Translations
Collaborator
Author
|
Ups, there's a problem I've only noticed when testing in production regarding looking at a Projekt. It shows wrong Veranstaltungen. |
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
Collaborator
Author
|
This should do it now |
Collaborator
Author
|
I've put it into production. Take a look at Hammesberg to see it in action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds option to add events lasting multiple days with adding an 'event_end_date' field
TODO:
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 ;)