Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Advent Calendar

No security coverage Under active development 12 sites

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.

Ask your assistant about Advent Calendar

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
7
Tracked since
Nov 2023
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta6 Pre-release 10–11 Jun 9, 2026
1.0.0-beta5 Pre-release 10–11 PHP 8 Dec 22, 2023
1.0.0-beta4 Pre-release 10 Dec 15, 2023
1.0.0-beta3 Pre-release 10 Dec 12, 2023
1.0.0-beta2 Pre-release 10 Dec 12, 2023
1.0.0-beta1 Pre-release 10 Dec 4, 2023
1.0.0-alpha1 Pre-release 10 Nov 21, 2023