Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

publication_date

8,789 sites Security covered
View on drupal.org

Description

The Publication Date module adds a "Published on" date for each node, containing the date when it was first published.

Without this, the only dates available for nodes are their created date and changed date, but these are often insufficient to meet the needs of publishing workflows. Sorting nodes by their created date doesn't account for content which is held in draft form for a time while being readied for publication. Sorting nodes by their changed date fails to account for content needing minor corrections after being published.

The "Published on" date can be used in any templates, or views. Publication date also incudes integration with the Display Suite module and has entity wrapper support, so it can integrate with modules like Rules that use the Entity API module.

The "Published on" date can be edited through the node edit form, allowing a custom published date to be set. If a custom date is set prior to publication, it will be respected when the node is published. The publication date is also retained when a node is unpublished and then republished.

Installation

  1. Copy the publication_date folder to your modules directory
  2. Go to /admin/modules, and enable this module.
  3. If you want to give users access to edit the "Published on" date, then go
    to /admin/people/permissions and set permissions as desired.

This will add a new $node->published_at field to nodes, containing the published date, or FALSE if no published date has been set. You can then use this field in any templates. Moreover, this field is available in the views parameters.

IMPORTANT: For nodes that were published BEFORE the installation of this module, we can not know the exact date of publication, so $node->published_at will initially contain the creation date.

API

Other modules can use hook_publication_date_alter() to change the publication date when it is set. See publication_date.api.php for more documentation.

Upgrading from 1.0 to 2.x

Please pay special attention to the README and CHANGELOG, as there are some changes to the way the Published On date is handled. Notably in 2.x, once the date has been set for a node it will persist until manually changed, even if the node is unpublished and republished. In version 1.0 the date was lost when the node was unpublished.

Drupal 6 version

The D6 version of Publication Date is no longer being actively supported. New D6 maintainers are welcome.

Credits

The Publication Date module was originally written by Emmanuelle Gouleau and Tristan Marly from Clever Age

D7 version initially ported by joostvdl and maintained by dgtlmoon.

Publication Date is currently maintained by jstoller.

Activity

Total releases
4
First release
Jan 2025
Latest release
6 months ago
Release cadence
82 days
Stability
50% stable

Release Timeline

Releases

Version Type Release date
3.1.0 Stable Oct 2, 2025
3.x-dev Dev Sep 2, 2025
3.1.0-beta1 Pre-release Sep 2, 2025
3.0.0 Stable Jan 30, 2025