Drupal is a registered trademark of Dries Buytaert
Release: Captcha Keypad 2.0.1 Minor update available for module captcha_keypad (2.0.1). Release: Audit Chain 1.5.1 Minor update available for module audit_chain (1.5.1). Release: GraphQL Compose Codegen 1.1.1 Minor update available for module graphql_compose_codegen (1.1.1). Release: DKAN DCAT-US v3 Bridge 1.0.3 Minor update available for module dkan_dcatus3_bridge (1.0.3). Release: Delete Users CSV 8.x-1.1 Minor update available for module delete_users_csv (8.x-1.1). Release: Commerce EuPlatesc Payment Gateway 8.x-2.7 Minor update available for module commerce_euplatesc (8.x-2.7). Release: MCP Sentinel 2.13.0 Minor update available for module mcp_sentinel (2.13.0). Release: Myo Theme 1.0.8 Minor update available for theme myo (1.0.8). Module Revived: CKEditor Anchor Link 3.0.5 Module anchor_link updated after 6 months of inactivity (3.0.5). Usage Milestone: OpenTelemetry Module opentelemetry crossed 1,000 active installs.

This module allows you to use Single Directory Components (SDCs) as the format for your Views. You can select an SDC and map your View's fields to its properties and slots, eliminating the need for complex template files.

Provides an easy way to display the output of a view using a single directory component. Select a component and connect View fields to props and slots. No need for complicated template files.

Features

  • Adds a new "Show" option under format, alongside "Content view mode" and "Fields" you can select "Single Directory component."
  • Provides a list of components available on the site under settings.
  • Lists Props and Slots of the component, and allows View fields to be mapped to them.
  • Renders the selected SDC for each row of the view result.

Which version should I use?

Two branches are actively supported:

  • Version 1.1.x is compatible with Drupal 10.3 - 12.
  • Version 1.2.x is compatible with Drupal 11.3 - 12.

Unless you need to support Drupal 10, we recommend using the 1.2.x branch. It uses PHP annotations and plugin autowiring, and more modern Drupal standards.

Both are feature equivalent, so ultimately it's your choice.

Support for 1.1.x will be dropped some time after Drupal 10 goes end of life at the end of 2026.

Post-Installation

  1. Install the module in the usual way.
  2. Create or edit a view.
  3. Add any fields and relationships you need.
  4. In the view editor, under "Format", change from "Content view mode" or "Fields" to "Single Directory Component".
  5. In Settings, select the SDC to use from the drop-down list of components.
  6. When a component is selected, the available Props and Slots will be shown. Select the Views field (configured in step 3) to map to.
  7. If you would like to use in Canvas, add a block to "Displays" at the top of the view settings. Your block will be available as a component when building Canvas pages.

Note: it's the responsibility of the View maintainer to ensure that the fields being mapped to properties contain compatible data.

Additional Requirements

This module has no additional requirements, but you do need to have some Single Directory Components available on your site. Please see the Drupal Using Single Directory Components documentation for more details on building and using components.

None (perhaps some modules providing SDC components could be suggested here).

Similar projects

  • UI patterns "UI patterns views" module provides similar functionality, however, it is a lot of overhead to install the entire UI Patterns module just to use it. Definitely a more complete solution, but best used alongside the rest of the UI patterns family.
  • Single Directory Components: Display allows a piece of content to be displayed using a SDC. This can then be displayed in a view using the "Content view mode" option. Works well as long as long as all the values you wish to display are within the same entity.
  • Component views seems to be more about creating views to browse the component library. I haven't installed it yet, but will add more when I do.

Supporting this Module

This module is aimed at making it easier to incorporate Views into low code/no code solutions like Drupal CMS. I think there is scope for incorporating into solutions like Drupal Canvas. If you think you could help with this, please get in touch, or dive into the issue queue!

Activity

Tracked releases
8
Tracked since
Apr 2026
Latest release
1 month ago
Releases (12 mo)
8 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Release date
1.2.1 Stable Jul 23, 2026
1.1.1 Stable Jul 23, 2026
1.2.0 Stable May 28, 2026
1.1.0 Stable May 28, 2026
1.2.x-dev Dev May 28, 2026
1.1.x-dev Dev May 14, 2026
1.0.0 Stable May 3, 2026
1.0.x-dev Dev Apr 12, 2026