Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views Highlight Past Events

Security covered Under active development 1 sites

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

Buangh InStyle Design Group LLC.

Drupal 9–11

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.

Activity

Tracked releases
3
Tracked since
Jun 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.0.x-dev Dev 9–11 Sep 13, 2024
1.0.1 Stable 9–11 Sep 13, 2024
1.0.0 Stable 9–10 Jun 4, 2023