This project is not covered by Drupal’s security advisory policy.
This module is for theme entity with editable twig template in admin ui, supoorts all content entity such as block_content and node . You can use automatic prprocessed field data in the twig template simply with field machine name, template can specify for entity display mode and theme , supports attach assets library.
Features
- All content entity support.
- Editable twig template.
- Automatic preprocessd field data variable for twig template, all field data type support.
- Original field out put support.(use {{ field_name['#original'] }}).
- Twig variable alter api (hook_entity_widget_variables_alter).
- Theme and display mode specified template.
- Entity widget template support import and export.
- Template form edit format settings.
- Attach assets library.
- Attach context entity variables.
- Custom wrapper style plugin for views.
Twig variables
- The base variables for a field is the property defined in the data type,{{ field_name.value}} for text field and {{field_name.target_id}} for reference field.
- {% for item in field_name.items %} for multi value field
- {{field_name.render}} for text field html out put or rendered entity for entity reference field.
- {{field_name.styles.[style_name]}} for image or media image style url.
- {{field_name.media_source}} for media source url or value.
- {{field_name.render}} for views reference field render array with views content.
- {{field_name.data}} for menu reference field menu tree data.
- {{field_name.id}} {{field_name.uuid}} {{field_name.entity_label}} {{field_name.entity_url}} {{field_name.entity_type}} avaliable for all entity or entity reference field.
Tips
- Use {{ dump(_context) }} to debug avaliable variables in twig template.
- Twig edit format settings in /admin/config/development/entity-theme-engine
Recommended modules
- Ace Code Editor for twig edit.
- Views Reference Field for views data source.
Similar modules
Supporting organizations:
Project information
Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Content display
6 sites report using this module
- Created by ipumpkin on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
8.x-1.7
released 23 May 2024
Works with Drupal: ^8.8 || ^9 || ^10
Install:
Development version: 8.x-1.x-dev updated 25 Dec 2024 at 08:23 UTC




