This project is not covered by Drupal’s security advisory policy.
Use a View as the data source for Canvas components. A View picks the content; a component shows it.
How it works
- Site builders add a "Canvas data" display to a View and give each field a key, such as
title,image,urlordate. Keys are suggested automatically. - Each display appears in the Canvas library under its own name.
- Editors drag it into a page and choose the number of items, the design and the grid. No code.
Designs
- Card designs are repeated once per row, in a CSS grid or a Bootstrap 5 grid, with columns for phones, tablets and desktops.
- List designs, such as sliders, get all rows at once.
- Any single-directory component or Canvas code component whose fields match the View's keys can be a design. Two designs are included: Data card and Data list.
Why not JSON:API?
The View runs on the server, so the data is in the page when it loads, with the View's access checks, language and cache tags. No JSON:API endpoint needs to be exposed, and it also works for single-directory components, which cannot fetch data.
Site builder controls
Per View: the allowed designs and layouts, the default design and grid, the most columns, and a lock that leaves editors only the number of items.
Requirements
- Drupal 11.3 or later
- Canvas 1.x
Installation
composer require drupal/canvas_views_data drush en canvas_views_data
Project information
- Project categories: Content display, Content editing experience, Site structure
- Ecosystem: Drupal Canvas
- Created by alaa abbad on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.







