Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Published referenced entity

No security coverage Under active development 15 sites

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.
Drupal 9–11

Ask your assistant about Published referenced entity

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

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
May 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
1.1.x-dev Dev 9–11 Jan 31, 2025
1.1.2 Stable 9–11 Jan 31, 2025
1.1.1 Stable 9–10 Aug 23, 2023
1.1.0 Stable 9–10 May 17, 2023