Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

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

Releases

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