Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Representative Image

Security covered Under active development 220 sites

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.

Drupal 10–11

Ask your assistant about Representative Image

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

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

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

Releases

Version Type Core PHP Release date
8.x-1.5 Stable 10–11 Sep 24, 2025