This project is not covered by Drupal’s security advisory policy.
About this Module
The Simple Modal Entity Form module provides a way to edit (content) entities in a modal.
Features:
- Views fields (edit and delete links)
- Action Links (See instructions)
- Specifying form display modes
Instructions
For ckeditor modals (Media, Link) to work within a modal the following core patch needs to be applied:
Issue: https://www.drupal.org/project/drupal/issues/2741877
Patch: https://www.drupal.org/files/issues/2020-04-20/2741877-48.patch
This is by no means a final patch, but the only one that seems the be available to fix this issue.
This module will work with this patch if present.
The operation links for editing and deleting entities are automatically added to the Views UI.
To add an action for a 'modal' entity form, add the following to your module.action.yml file:
your_module.your_link:
route_name: modal_entity_form.add
route_parameters:
entity_type: foo
bundle: bar
form_mode: baz
appears_on:
- some.router.link
title: 'Add entity'
class: 'Drupal\modal_entity_form\Menu\LocalActionWithModal'
Checkout the modal_entity_form.routing.yml for the other routes available.
If the entity type doesn't support bundles, just repeat the entity type.
Wish list
- Add tests.
- Provide a widget for the entity reference field type.
Disclaimer
This module is in a very early beta stage and not suitable for production yet. Please leave any issues in the issue queue.
Similar Modules
- [Modal Entity Form (Sandbox)](https://www.drupal.org/sandbox/michaelpetri/2827680)
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Module categories: Administration Tools, Content Editing Experience
- 6 sites report using this module
- Created by nuez on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.