Experimental project
This is a sandbox project, which contains experimental code for developer use only.
The Typified Blocks module helps you to place custom content blocks into the Block layout without UUID dependency by new configurable block "Typified Block" with predefined "types". In other words you'll "reserve" place for your block in Block layout and then can just add/update Block content on each environment as part of content without any troubles with configurations.
Your custom block content will be rendered in the specified Block layout section as common content block.
There is a hard link between Block content entities and Block layout by block UUID. So if you place some Block content in layout, Block's UUID will be stored in configs as dependency. In general usage there are no problems - but they arise in numbers when you will try to use different environments for development or deploy and have no possibilities to sync databases or use some kind of default content migration.
The Typified Blocks will help you to avoid it.
Requirements
This module requires the following Core modules:
- Custom Block (Drupal core)
- Options (Drupal core)
Installation
- Install as you would normally install a contributed Drupal module.
- Add/update Typified Block types on
/admin/config/user-interface/typified-blocks/block-types
N.B.: info type is predefined type and can not be removed or changed.
Usage
- Add types for your typified blocks on
/admin/config/user-interface/typified-blocks/block-types - Place into the Block layout section new Typified block with defined type.
- Add to your custom block content type new
field_typefield from the list of existing fields. - Create/update custom block content with same type
N.B.: You can use only one type per block.
Project information
- Project categories: Content editing experience, Content display
- Created by ElegguaDP on , updated