Drupal is a registered trademark of Dries Buytaert
Search API Solr 4.4.0 Minor update available for module search_api_solr (4.4.0). Page Manager 8.x-4.0 Major update available for module page_manager (8.x-4.0). Trash 3.1.0-beta2 New beta version released for module trash (3.1.0-beta2). Commerce AutoSKU 3.0.1 Minor update available for module commerce_autosku (3.0.1). Custom Field 4.0.10 Minor update available for module custom_field (4.0.10). Alternative login ID & display names 2.0.12 Minor update available for module alt_login (2.0.12). EntityReference UUID 3.0.1 Minor update available for module entity_reference_uuid (3.0.1). LocalGov Publications Importer 1.1.1 Minor update available for module localgov_publications_importer (1.1.1). Configuration Override Warn 8.x-1.6 Module config_override_warn updated after 10 months of inactivity (8.x-1.6). Table Alternate Rows Module table_altrow crossed 1,000 active installs.

Advent Calendar

7 sites No security coverage
View on drupal.org

This module allows you to easily add an Advent Calendar to your website, using a view style to display content for each day as a door. Doors can be opened by users, with their state remembered locally for anonymous users or via user data for logged-in users. An optional quickstart sub-module can set up a content type, taxonomy, and a view for a calendar.

Easily add an Advent Calendar to your site. Provides a View Style for formatting View results using a Single Directory Component for formatting each door. Use the Advent Calendar Quickstart sub-module to set up everything you need for your calendar.

Features

  • Format view results as an advent calendar.
  • Format advent calendar doors using the advent_calendar:door component.
  • By default, all doors will be closed, and will open as user clicks on them.
  • Unpublished doors will show the closed door, but will not be clickable.
  • For anonymous users, open status of calendar doors will be stored locally using JavaScript.
  • For logged in users, open state is stored in user.data, and sent to browser as a cookie.

The Advent Calendar Quickstart module sets up everything needed for a calendar.

  • Creates the Advent Calendar Door content type (if not present).
  • Creates the Year taxonomy vocabulary.
  • Adds a taxonomy term for the current year.
  • Adds a calendar door node for each day of the calendar.
  • Creates a view to display an advent calendar for the current year.
  • Once installed, Quickstart module serves no further purpose, and may be safely uninstalled. It may be reinstalled the following year to create new calendar entries for that year.

Note that calendar doors are created as "unpublished", so you will need to be published before they may be "opened".

Post-Installation

If using the Quickstart module, you can simply edit the created nodes and replace with content specific to your calendar. You will need to either manually publish the node each day or use a scheduling module to publish manually.

If using Advent Calendar without Quickstart, you'll need to create a view with a View Style of Advent Calendar. You will need to create hidden view fields selecting the values required for the component properties, then add the component import to the rewrite of the last field.

Additional Requirements

This module requires the Single Directory Components core module. As a result, it's minimum required Drupal version is 10.1.

You may want to use a scheduling module such as Scheduler or Scheduled Publish with Advent Calendar.

Similar projects

Calendar View will allow results of a view to be displayed in a calendar grid, so has

Supporting this Module

This project was created to facilitate the Drupal Advent Calendar project. You can help provide content for that project.

Community Documentation

Community documentation is currently being developed.

Activity

Total releases
1
First release
Jun 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0-beta6 Pre-release Jun 9, 2026