This module enables you to construct React and Vue components using Drupal blocks, passing data from Drupal to your components in JSON format. It supports both client-side and server-side rendering, allows for custom block types with key/value properties, and can handle various data types like text and images. The module also includes features for block references, current route and language information, and data translation.
The Elementree module allows you to build your React/Vue components using Drupal blocks. Using block fields you can pass any data from the Drupal side into React/Vue components in the JSON format.
Features:
Client-side and server-side rendering.
Custom block type with a paragraph that provides the possibility to define key/value properties.
You can pass to React different properties: text, formatted text or image.
The reference between blocks - provides the possibility to use properties of one block in another block.
Current route name and current language - provides data for React/Vue components about the current route and selected language.
Support translation of data - you can provide different language settings for component data.
Possibility to alter each block and pass any type of data into your block.
Module requirements:
Paragraphs
Media (for 8.x-2.1 only)
Media Library (for 8.x-2.1 only)
Ask your assistant about Elementree
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
- Entity Reference Revisions
- Paragraphs
- block_content Drupal core
- content_translation Drupal core
- field Drupal core
- language Drupal core
- media_library Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.