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
1 day 11 hours ago
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.
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
1 day 9 hours ago - 1 day 9 hours ago
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
creates its own item object and currently does not pass
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:
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
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
.
////
What version of Joomla and Jem are you using?
Code:
mod_jem_teaser
Code:
event_status
Code:
$lists[$i]->event_status = $row->event_status ?? 'scheduled';
Code:
event_status
Code:
mod_jem_teaser
////
What version of Joomla and Jem are you using?
JEM 5.01 (beta) + Joomla 6
Last edit: 1 day 9 hours ago by Bluefox.
Please Log in or Create an account to join the conversation.
Re: Status ribbon on mod_jem_teaser events
19 hours 32 minutes ago
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.
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.
The following user(s) said Thank You: fabix
Please Log in or Create an account to join the conversation.
Re: Status ribbon on mod_jem_teaser events
12 hours 28 minutes ago - 12 hours 7 minutes ago
Great job! Thanks a bunch for having fixed that so quickly. I've only tested it on mod_jem_teaser and it works well. My only concern is to have a ribbon that is proportional to the image size rather than a fixed size. Because on my website, the event images are large (which is the case when "Associated article usage" is "Event content"), which makes the ribbon look too small. Maybe it can be solved on my end by modifying a template and/or CSS, I'll take a look later.
Last edit: 12 hours 7 minutes ago by fabix. Reason: precision
Please Log in or Create an account to join the conversation.
Re: Status ribbon on mod_jem_teaser events
7 hours 3 minutes ago
Check the new ZIPs (refresh) with Ribbons scale field.
More info in: github.com/jemproject/JEM-Project/issues/2335
More info in: github.com/jemproject/JEM-Project/issues/2335
Please Log in or Create an account to join the conversation.
Re: Status ribbon on mod_jem_teaser events
6 hours 41 minutes ago
It's perfect! Thanks again.
I looked at your changes, I could never have done that... So much code in such a short time, do you vibe-code?
I looked at your changes, I could never have done that... So much code in such a short time, do you vibe-code?
Please Log in or Create an account to join the conversation.
Time to create page: 0.521 seconds