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.

Representative Image

272 sites Security covered
View on drupal.org

This module lets you designate a primary image or media field for content like nodes and taxonomy terms. This representative image can then be easily reused in various ways, such as Open Graph meta tags, fields within views, or as embedded tokens. It also supports a default image option for items lacking a specific image.

Allows you to define representative image or media fields for entities like nodes, taxonomy terms and the like. These can then be used in Open Graph meta tags (via tokens); as fields in views; or embedded as tokens. The media module is also supported. A default image can be defined for those entities without images.

Drupal 8

Defines a field of type Representative Image that you can add to bundles (like content types, user accounts, comment types, etc) and define which image field should be used for display plus what to do when there is no image.

Once the field is configured, you can use it in display modes, views, and embed it as a token. See the screenshots for a few examples.

Drupal 7

Features

  1. A setting in admin/structure/types/manage/my_content_type allowing you to select a representative image field. For example, for articles the representative field might be image, but for some other content type it might be logo, etc.
  2. A token [node:representative_image], which you can use anywhere you use tokens, which gives you a full URL to that Image. If you don't need a token, you can also use the representative_image() function. Tokens can the be used with Metatag Open Graph module to display, in the og:image meta tag, a representative image for your node, which might be different per node type.
  3. Support for image fields, even when using the media module (>= 2.x).
  4. The initial version of this module was sponsored by TP1 in Montreal.

Activity

Total releases
1
First release
Sep 2025
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
8.x-1.5 Stable Sep 24, 2025