Date Range Availability Module for Managing Entity Availability in Drupal
A powerful new contrib module, Date Range Availability, has been released by Mahmoud Hanafi, a Drupal Developer at the Ministry of Communications and Information Technology, Saudi Arabia. The module provides an efficient solution for managing and displaying availability states for various entities, including events, products, and resources. It is particularly beneficial for applications such as event management, e-commerce platforms, and booking systems, offering seamless integration and flexible functionality for Drupal developers.
The Date Range Availability module enables users to define availability states such as "Available," "Unavailable," and "Coming Soon" based on specific date ranges. It integrates with Drupal Views, allowing site builders to add an availability field that dynamically displays an entity’s current status. Developers can also use the 'node_availability'
Twig function to incorporate availability information directly within theme templates, ensuring a customizable and user-friendly experience.
The module's versatile applications make it well-suited for a range of scenarios, from managing inventory in e-commerce stores to handling resource availability in booking systems. Its lightweight and efficient design makes it a valuable addition to projects requiring robust date-range-based availability management.
The module is compatible with Drupal versions 9, 10, and 11, making it accessible to a wide range of Drupal sites. Developers and site builders are encouraged to try it out, provide feedback, and contribute to its ongoing improvement.
Visit the official project page, Date Range Availability, on Drupal.org, for more details and to download the module.