Part of the Views ecosystem · 286 projects
This module allows you to visually highlight past events in your Drupal site's views. It checks if an event has passed using JavaScript, which helps reduce server load. You can customize the appearance of past events by setting a highlight color or adding a custom CSS class.
The module provides a user interface that enables to highlight past events displayed with the Views module. An "event" can be any entity that has a field of the date type. The main feature of the module is that checking whether the event has passed is done on the client side using JavaScript. This avoids using the "Time-based" view caching and thus reduces server load.
Uses
Add a date field to the view that displays events. In the field settings, open the "Highlight past events" section. Set the highlight color of past events. Also, it's possible to add a custom CSS class that will be applied to a view row if the event passes.
You can also set the "recalculation interval". This enables to highlight events that expired during the period the page was opened. However, be aware that this does not refresh the view (you can use the Views Auto-Refresh module for this).
If you are interested in a similar but server-side solution, you can find it here: https://www.drupal.org/forum/support/post-installation/2023-05-18/if-and...
Sponsor
Ask your assistant about Views Highlight Past Events
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- views Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Views ecosystem
Most installed first