You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 29, 2020. It is now read-only.
Though the extension is deprecated / not supported, it runs (almost) fine.
Problem:
In the calendar, all news-items with "Is Event" = "TRUE" are now shown at all.
If I set them to "Is Event" = "FALSE" after setting an Event-End-Date, the item is shown in the calendar (frontend).**
I searched for an explanation and found the following code in EXT:eventnews:
File: EXT:eventnews/Classes/Hooks/AbstractDemandedRepository.php
Line: 49 protected function updateEventConstraints(...) {
...
Hey there,
We are using following setup:
Though the extension is deprecated / not supported, it runs (almost) fine.
Problem:
In the calendar, all news-items with "Is Event" = "TRUE" are now shown at all.
If I set them to "Is Event" = "FALSE" after setting an Event-End-Date, the item is shown in the calendar (frontend).**
I searched for an explanation and found the following code in EXT:eventnews:
File: EXT:eventnews/Classes/Hooks/AbstractDemandedRepository.php
Line: 49
protected function updateEventConstraints(...)
{
...
...
}
...
}
(Side note: Why is it, hat there is only NO_EVENTS and ONLY_EVENTS not both - News-Events-Items & News-Non-Event-Items?)
Fixing my issue via following addition:
File: EXT:cb_newscal/Classes/Controller/NewsController.php
Line: 44
protected function createDemandObject (...) {
...
after:
$demand->setOrder($demand->getDateField() . ' asc');
add:
$demand->setEventRestriction(0);
After these changes, the issue is fixed.
Events are shown as well as non-event-items in the calendar view.
Hope this helps someone having the same problem as we did.
Feel free to inform me if should change something.
I would love to see the extension updated and those problems fixed.
The text was updated successfully, but these errors were encountered: