unpublished_content_notice
Unpublished Content Notice shows a clear warning when editors view unpublished content, draft revisions, or non-default revisions, helping prevent confusion between draft and live content.
Features
Unpublished Content Notice helps editors and site administrators quickly recognize when they are viewing content that is not the published public version.
Key features:
- Displays a visible notice for unpublished content.
- Optionally displays a notice for draft or non-default revisions.
- Supports configurable notice text.
- Allows notices to be enabled per entity type.
- Provides permissions to control who can see the notices.
- Works on both frontend and administrative entity pages.
- Supports Drupal 10.3, Drupal 11, and Drupal 12.
This module is useful for editorial teams, moderated publishing workflows, staging reviews, and sites where users may accidentally confuse unpublished or draft content with the live version.
Post-Installation
After installing the module, go to: Configuration > Content authoring > Unpublished Content Notice or visit: /admin/config/content/unpublished-content-notice
From the settings page, you can:
- Select which entity types should show notices.
- Enable or disable notices for non-default revisions.
- Customize the unpublished content message.
- Customize the draft/non-default revision message.
You should also review permissions at: People > Permissions
Grant the View unpublished content notice permission to the roles that should see these notices, such as editors, content managers, or administrators.
Additional Requirements
This module does not require any external libraries or third-party services.
Required:
- Drupal core
- PHP version supported by the target Drupal version
Optional Drupal core modules that pair well with this module:
- Content Moderation
- Workflows
These are not required, but they are commonly used on sites where draft and published revisions need to be clearly distinguished.
Recommended modules/libraries
Recommended Drupal core modules:
- Content Moderation: Useful for editorial workflows with draft, review, and published states.
- Workflows: Useful when defining custom editorial states and transitions.
Recommended contributed modules:
- Scheduler: Helpful for sites that schedule content publishing and unpublishing.
- Diff: Helpful for comparing draft and published revisions.
Similar projects
There are many Drupal modules related to content moderation, publishing workflows, and revision management, but this module is intentionally focused on one small problem: showing a clear notice when a user is viewing unpublished or non-default content.
Unlike workflow management modules, Unpublished Content Notice does not create states, transitions, or publishing rules. It only provides an editorial visibility notice so users can better understand what version of content they are viewing.
Supporting this Module
Development and maintenance are supported through Drupal.org issue queue contributions.
You can support this module by:
- Reporting bugs.
- Suggesting improvements.
- Testing new releases.
- Contributing patches or merge requests.
- Helping improve documentation.