Part of the SDC ecosystem · 22 projects
This module allows you to use Single Directory Components (SDCs) as blocks within Drupal. It automatically generates configurable blocks for each SDC, allowing their content to be placed in block layouts, layout builder, and other block-rendering tools. You can also use tokens to incorporate node information into your SDC blocks.
✨ Write Single Directory Components, and get blocks for free! ✨
This module lets you put Single Directory Components
in the page using blocks. This includes the regular block layout, layout
builder, and any other tool that renders blocks in a page.
Watch the video tutorial
3 min 📹 Tutorial to put an SDC Block on the page
Configurable blocks
This module will provide one block type for each component tagged using SDC
Tagging. A configuration form will be auto-generated for your block, even if
your component uses props or contains slots. No additional effort required.
Note in the screenshot above that the component contains one string property
called Heading. It also contains one slot called card_body.
Token support
When a site builder puts a block on a page that contains a node, then they
can use the node information in the CL Block using tokens. Access the node
content (and its relationships) using tokens. For instance: [node:title].
UI Suite
SDC Block is direct and simple implementation, check out UI Suite for a more complete and nuanced solution.
For more information read #3482586: Comparison with UI Patterns module.
Ask your assistant about Single Directory Components: Block
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
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.
More in the SDC ecosystem
Most installed first
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta2 | Pre-release | 10 | Nov 29, 2023 | ||
| 1.x-dev | Dev | 10 | Nov 3, 2023 | ||
| 1.0.0-beta1 | Pre-release | 10 | Nov 3, 2023 |