help to better help you:

Please: add always Joomla / JEM version and details to your posts, so we can try to reproduce your issue!

Status ribbon on mod_jem_teaser events

Status ribbon on mod_jem_teaser events

20 hours 41 minutes ago
#34391
Hello,
When an event is displayed by the jem frontend, a rubbon is displayed on the event thumbnail if the event has been cancelled, what is great. Unfortunately, that's not the case for the thumbnails displayed by mod_jem_teaser. That module is what is used on my home page and afaik there's no other way to let the visitors know that an event has been cancelled without clicking on the event.
The event status doesn't seem to be available in the helper so I'm not sure it's possible to just edit a template to get the same behavior as the frontend. Would it possible to add that status rubbon on all thumbnails/images for every jem modules?
Thank you.

Please Log in or Create an account to join the conversation.

Re: Status ribbon on mod_jem_teaser events

18 hours 50 minutes ago - 18 hours 48 minutes ago
#34392
Hi,I had a quick look at the current JEM code, including the latest master and the current 5.1 development branch.It looks like you found a real omission in the teaser module.The good news is that the event status is already available in the underlying Eventslist model. The problem is that
Code:
mod_jem_teaser
creates its own item object and currently does not pass
Code:
event_status
to the template.So the status is basically lost between the model and the module template. That also explains why this cannot really be solved cleanly with only a template override at the moment.A small first step would be to expose the status in the teaser helper, for example:
Code:
$lists[$i]->event_status = $row->event_status ?? 'scheduled';
Then the teaser template could use the same kind of ribbon as the event detail view.I also checked some of the other JEM event modules and they use a similar approach. So I think it would actually make sense to make
Code:
event_status
available consistently in all JEM event modules, and let modules which display an event image show the same Cancelled / Postponed / Rescheduled / Moved Online ribbon.So yes, I think this would be a useful improvement and not only for
Code:
mod_jem_teaser
.

////
What version of Joomla and Jem are you using?
JEM 5.01 (beta) + Joomla 6
Last edit: 18 hours 48 minutes ago by Bluefox.

Please Log in or Create an account to join the conversation.

Re: Status ribbon on mod_jem_teaser events

4 hours 48 minutes ago
#34393
Fabix can check the new JEM 5.0.1 RC4 version. You can download from:
www.joomlaeventmanager.net/download/beta-versions
This version include this issue:
#2335 Configurable event status ribbons in JEM modules
More info: github.com/jemproject/JEM-Project/issues/2335

Please let me know if this new configuration option for the status ribbon works as expected across all JEM modules. Thanks to report it.

Please Log in or Create an account to join the conversation.

Time to create page: 1.085 seconds