Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Published referenced entity

13 sites No security coverage Drupal 9–11
View on drupal.org

This module provides special display options for fields that link to other content within Drupal, such as nodes, users, or taxonomy terms. It allows you to configure these links to only show published or active referenced items, preventing unpublished content from appearing. You can select from options to display the ID, label, or the full rendered output of the published referenced entity.

The Published referenced entity is a drupal module that implement the specialized display format for fields that reference other entities. In Drupal, entities are a fundamental concept and can represent various types of content, such as nodes, users, taxonomy terms, etc.

By default, Drupal provides a set of field formatters for different field types. However, in certain cases, you may want to display only published entities or active users for fields that reference entities.

The module provides an administrative interface where you can configure the settings for the field formatter. Once the module is enabled, you would be able to select the field formatter for referenced entity fields on the Manage Display configuration page of the entity type to which the field belongs. If you have referenced entities that are not published, they will not be displayed when rendering the entity reference field. This module provides the following formatters for the nodes, users and taxonomy terms referenced entity field:

  • Published Entity ID
  • Published Entity Label
  • Published Rendered Entity

How to use this module:

  1. Enable the Published referenced entity module:
  2. Go to the Extend page (/admin/modules) in your Drupal site.
  3. Find the "Published referenced entity" module in the list and enable it.
  4. Click the "Save configuration" button to apply the changes.
  5. Go to the Manage Fields page for your content type:
  6. Navigate to the Content Type configuration page for the content type where you want to add instructions to a field.
  7. Add the referenced field for the node, user or taxonomy term entities
  8. Click on the "Manage fields" tab for that content type.
  9. Edit the field and configure the formatter. Select the Published Entity ID or Published Entity Label or Published Rendered Entity formatter and other configurations.
  10. Click the "Save" button to save the field configuration after updating the formatters.
  11. After making these changes, the referenced entities will not be rendered and displayed if they are not published or active.

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jan 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
1.1.x-dev Dev 9–11 Jan 31, 2025
1.1.2 Stable 9–11 Jan 31, 2025