Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Content Block

16 sites No security coverage
View on drupal.org

This module allows website editors to easily embed and display specific content as blocks. You can configure what content to show, how it should look, and where it can be placed without needing complex setup.

The Content Block module (content_block) empowers website editors to dynamically embed and display content as a block, offering a flexible and intuitive way to highlight specific entities with customizable options—without requiring complex configurations.

Essentially, the Content Block module functions as a basic, non-exportable View, allowing dynamic content retrieval and presentation without the need for custom Views configurations. It provides an easy way to embed content blocks while maintaining flexibility for editors.

Features

  • Configure the following options:
    • Entity Type: Select the type of entity to display (e.g., nodes, taxonomy terms).
    • Bundle: Choose the specific bundle (e.g., content type).
    • View Mode: Define how the content is rendered.
    • Number of Items: Specify the number of items to display.
    • Sorting: Set the sorting criteria for the displayed items.
    • Columns: Render the results in 1, 2, or 3 columns.
  • Embed blocks anywhere blocks are supported in Drupal.
    • Block Layout
    • Layout Builder
    • Views
    • ...

Installation

  1. Download and place the module in the modules/contrib/content_block directory of your Drupal installation, or download it with composer: composer require drupal/content_block
  2. Enable the module via the Extend page in the Drupal admin interface or using Drush:

drush en content_block

Dependencies

This module depends on the following core module:

  • Layout Discovery: Ensures compatibility with Layout Builder and other layout-related features. It is used for rendering the content in different layouts.

Usage

  1. Navigate to the Block Layout page, or find the block in any other way from the interface.
  2. Select the Content Block from the list of available blocks.
  3. Configure the block settings to define the entity type, bundle, view mode, number of items, sorting, and columns.
  4. Save the block and place it in the desired region.

Requirements

  • Drupal 10 or higher.

Roadmap

  • #3515067 - Add multilingual support
  • #3515061- Include offset configuration option
  • #3515063 - Include published configuration option

Maintainers

This module is maintained by pgrandeg. Contributions and feedback are welcome!

License

This project is licensed under the GPL-2.0-or-later.

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
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
0.1.0-alpha1 Pre-release 10–11 Mar 24, 2025