Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Facets 3.0.6 Minor update available for module facets (3.0.6). Release: Facets 3.0.5 Minor update available for module facets (3.0.5). Release: Flag 5.1.0 Minor update available for module flag (5.1.0). Release: Block Layout Accordion 1.0.2 Minor update available for module block_layout_accordion (1.0.2). Release: Canvas interactive toggle 1.0.2 Minor update available for module canvas_interactive_toggle (1.0.2). Release: Views HTTP Client 1.0.2 Minor update available for module views_http_client (1.0.2). Release: Block Layout Accordion 1.0.1 Minor update available for module block_layout_accordion (1.0.1). Release: Canvas interactive toggle 1.0.1 Minor update available for module canvas_interactive_toggle (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Overview field

209 sites Security covered Drupal 9–11
View on drupal.org

This module provides a custom field that allows you to display various predefined content overviews, such as lists of recent content or specific blocks. You can define these overviews in your code, offering more flexibility than simply selecting from existing blocks.

Synopsis

Overview

Provides a custom field to add different predefined overviews.

This can be used to add views / blocks / ...

Usage

Add an option to the dropdown list:

/**
 * Implements hook_overview_field_options_alter().
 *
 * Add an option to the overview field.
 */
function overview_field_example_overview_field_options_alter(&$options) {
  $options['recent_content'] = t('Show a list of the recent content on the site');
  $options['example_block'] = t('Loads a block');
}

Load the output for the previously declared option.


/**
 * Implements hook_overview_field_output_alter().
 */
function overview_field_example_overview_field_output_alter($key, &$output) {
  if ($key == 'recent_content') {
    $output = overview_field_load_view('content_recent', 'block_1');
  }
  if ($key == 'example_block') {
    $block_manager = \Drupal::service('plugin.manager.block');
    $config = [];
    $plugin_block = $block_manager->createInstance('block_name', $config);
    $output = $plugin_block->build();
  }
}

Requirements

You need to know how to create a custom module.

Paragraphs to add an overview field paragraph with the overview field.

Roadmap

  • Add more tests to the module.
  • Add extra options with Plugin derivatives instead of alters.

Known problems

/

Credits

Dropsolid for development time.

Help wanted!

  • Help is always wanted by using and testing the module and reporting bugs.

* Block field
The block field module allows you to add blocks to fields as well but through the interface.
Advantage of adding the options through code, is that you can add anything, from a simple view to some custom coding you did.
The block field module allows the content editor also to choose how many items are shown on an overview and in what format, while this is not possible with the overview field module. For our policy, this is an advantage as well.

If you encounter more similar projects, feel free to create an issue.

Dependencies

  • Field

Restrictions

/

Depends on

Dependencies of the latest stable release

  • field Drupal core

Required by

1 tracked project depends on this one

Activity

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

Releases

Version Type Core Release date
2.0.2 Stable 9–11 Jun 2, 2025