Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: HeCAPTe 1.0.2 — Minor update available for module hecapte_captcha (1.0.2). Release: Attribution & Licensing 1.2.1 — Minor update available for module attribution (1.2.1). Release: MCP Sentinel 2.29.0 — Minor update available for module mcp_sentinel (2.29.0). Release: Audit Chain 1.10.9 — Minor update available for module audit_chain (1.10.9). Release: Menu Autopilot 1.4.7 — Minor update available for module menu_autopilot (1.4.7). Release: FileGate 1.11.3 — Minor update available for module file_gate (1.11.3). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Site Studio Views Element

Security covered Drupal 8–11
View on drupal.org

The Acquia Site Studio Views Element module creates a new Element for Site Studio that lets admins and authors embed a View into a component without having to add blocks to the hidden region of the theme first. If you build dynamic components in Site Studio that drop Views into pages, this module might be for you. If you have ever looked at your components or templates and saw a Block element say 'Undefined' block that used to point at a block instance of a View, this is definitely for you.

This avoids the need for:

  • Remembering to add a block instance for every block display of a View to output in a Site Studio component
  • Remembering to 'add' those blocks in the Block Layout in Drupal when deploying to different environments (if you ignore block configuration)

This makes it easier for authors who may have some Views knowledge to not have to deal with the added tasks of block management. In addition, this avoids performance penalties of having too many blocks in the hidden region that may be rendered on page load regardless if you forget to set adequate visibility settings. Since components can go nearly anywhere on a site, this bypasses that entirely.

The list of options for the element are all View displays that are the block plugin only. This avoids rendering other displays like feeds, pages or other types of View displays.

How to use:

  1. Build a new component
  2. Add the 'Views Element' to the canvas
  3. Select the View display you wish to display
  4. Save

Now you can use this component and the View will be injected. Contextual filters and other settings are respected automatically and nothing additional is needed for that to work.

This module pairs well with Views Minimum Condition.

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Mar 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core Release date
1.0.2 Stable 8–11 Sep 24, 2024
1.0.1 Stable May 16, 2023
1.0.0 Stable Apr 29, 2023
1.0.0-beta1 Pre-release Apr 11, 2023
1.0.x-dev Dev Mar 30, 2023