Extra Block Types (EBT): Core
EBT modules provide ability to add different blocks in Layout Builder in few clicks. EBT Core contains helper functions for EBT modules.
For a full description of the module, visit the project page.
Submit bug reports and feature suggestions, or track changes in the issue queue.
Table of contents
- Requirements
- Recommended modules
- Installation
- Configuration
- Creating a new EBT module
- Troubleshooting
- FAQ
- External Documentation
- Maintainers
Requirements
This module requires the following modules:
EBT Modules use Media module with Media Image type for background images. Check Media Image type exists before install EBT Core module.
Recommended modules-
EBT modules provide ability to add different blocks in Layout Builder in few clicks. You can install separate block types from this bunch of EBT modules:
- EBT Accordion / FAQ
- EBT Basic Button
- EBT Block
- EBT Bootstrap Button
- EBT Call to Action
- EBT Carousel
- EBT Columns
- EBT Countdown
- EBT Counter
- EBT Hero
- EBT Image
- EBT Image Gallery
- EBT Micromodal
- EBT Quote
- EBT Slick Slider
- EBT Slideshow
- EBT Stats
- EBT Tabs
- EBT Text
- EBT Tiles
- EBT Timeline
- EBT Video
- EBT Video and Image gallery
- EBT Views
- EBT Webform
- EBT Webform Popup
More about EBT blocks read on EBT Core module page: EBT Core
If you are looking for Extra Paragraph Types, you can check out these modules:
- EPT Accordion / FAQ
- EPT Basic Button
- EPT Block
- EPT Bootstrap Button
- EPT Call to Action
- EPT Carousel
- EPT Columns
- EPT Countdown
- EPT Counter
- EPT Hero
- EPT Image
- EPT Image Gallery
- EPT Micromodal
- EPT Quote
- EPT Slick Slider
- EPT Slideshow
- EPT Stats
- EPT Tabs
- EPT Text
- EPT Tiles
- EPT Timeline
- EPT Video
- EPT Video and Image gallery
- EPT Views
- EPT Webform
- EPT Webform Popup
More about EPT paragraphs read on EPT Core module page: EPT Core
If you want to enhance UI for adding Blocks from Layout builder try this module: Layout Builder Modal
If you want to enhance UI for adding Paragraphs try these modules: Paragraphs Edit Paragraphs Modal Edit
Installation
Install as you would normally install a contributed Drupal module. For further information, see Installing Drupal Modules.
Configuration
EBT Core has configuration form with Primary/Secondary colors and Mobile/Tablet/Desktop breakpoints in Administration » Configuration » Content authoring » Extra Block Types (EBT) settings
These configs will be applied to other EBT blocks by default.
Creating a new EBT module
EBT Core module contains starterkit folder with boilerplate for a new EBT module. You need to replace ebt_starterkit in files and filenames and us it as usual custom module.
If you enable EBT Starterkit module, it will be possible to create a new EBT module for your project with Drush command (for Drush 12+):
drush generate ebt:module
Make sure, you use ebt_* prefix for machine_name (e.g. ebt_tabs, ebt_cards). The prefix ebt_* is required for EBT block functionality. After that, install generated module as usual Drupal module. If you are planning to contribute your EBT module, then export configs with new configs for fields back to /config/install folder in your new EBT module.
Troubleshooting
-
If you see the error during EBT modules installation: "The EBT Carousel needs to be created "Image" media type. (Currently using Media type Image version Not created)" Then you need to create Image media type: Structure » Media types » Add media type
-
If you use Field Layout module, it will automatically apply Layout Builder for new EBT block types. So you will need to disable Layout Builder for displaying block type fields, for example:
/admin/structure/block/block-content/manage/ebt_cta/display/default
FAQ
Q: Can I use only one EBT block type, for example EBT Slideshow, without other modules?
A: Yes, sure. EBT block types tend to be standalone modules. You can install only needed block types.
External Documentation
You can also view the EBT documentation at Drupal Book: https://drupalbook.org/ebt
Maintainers
- Ivan Abramenko - levmyshkin
- Narine Tsaturyan - Narine_Tsaturyan