Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Views Highlight Past Events

Security covered Drupal 9–11

Part of the Views ecosystem · 211 projects

View on drupal.org

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.

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 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 Jun 4, 2023