georgringer / eventnews

TYPO3 CMS Extension "eventnews" for displaying news as event in an calendar
Other
27 stars 60 forks source link

Condition isEvent not working anymore #69

Open chequille opened 5 years ago

chequille commented 5 years ago

Hi Georg, currently try to update to latest News version and as well to latest eventnews version.

UNfortunately, I am facing the problem, that my template does not work anymore as expected.

is not working. It seems, that isEvent does not exist. As well newsItem.eventEnd does not exist. Is there a solution for this? BR Jürgen
chequille commented 5 years ago

PS: as well no news items having an event are not shown anymore.

georgringer commented 5 years ago

so which versions do you use and how do you configure the plugin?

ulbrich-media commented 5 years ago

Hey Georg,

we are currently facing the exact same issue on one of our system, too. Here are some information about it:

Looks like extending the news model doesn't work properly. Debugging the templates show ordinary News instead of EventNews Models. We extend the news model ourself in the same way. These changes don't work anymore either. Removing them doesn't make any difference.

Interestingly on the live system it depends on the link if everything works or not.

Works: example.org/index.php?id=44

Doesn't work: example.org?id=44 example.org/events/list/

However, we can't reproduce this locally so we aren't sure if this is related. For speaking urls we use realurl v2.4.0. Removing it doesn't change anything.

Hope these information are helpful. I'm going to debug into it later today or tomorrow and share my results if there are any.

Greetings, Marcel

chequille commented 5 years ago

Hi Guys, for me the solution was the following:

plugin.tx_news.settings {
  demandClass = GeorgRinger\Eventnews\Domain\Model\Dto\Demand

  # Unless otherwise flexformed restrict all news plugins to display "news only"
  eventRestriction = 1
  overrideFlexformSettingsIfEmpty := addToList(eventRestriction)
}

eventRestriction default value is 2 and in the typoscript setup file of the extension the parameter is commented. Therefore no event news are shown and of course news.isEvent does not have a value as well.

BR Jürgen

bribbelbum commented 3 years ago

Hi,

I had the same problem after update. Is the static template from eventnews included after the static template from news?

This fixed the the problem by us.

BR Björn

jaumepresaspuig commented 8 months ago

Is there any fix for that? We are using the last versions (news 11.3.0 and event news 6.0.2) with TYPO3 12.4.9, there is no problem with the list view, but the event detail page only works when clearing the cache and reloading the BE. The first time you load the event detail page all the fields added by the eventnews extension are missing after clearing the cache: imatge After clearing the cache again and reloading the BE they are there: imatge There are no issues with TYPO3 11.5.33, news 9.4.0 and eventnews 5.0.2.

jaumepresaspuig commented 7 months ago

I think it's a news issue, not eventnews, because if I add fields to the news model they are also missing in the event detail view.