Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I had a little issue on my site with a bootstrap theme. Instead of showing up the "insert xyz" entity popup, I got the following console error:
TypeError: Drupal.theme.bootstrapModal is not a function
I had to patch the file "entity_embed.routing.yml" and added the following two lines of code at the end of the file:
options:
_theme: ajax_base_page
After this little tweak, the entity browser opens nicely in a modal window.
Hope this helps somebody.
Comment | File | Size | Author |
---|---|---|---|
#3 | entity_embed-2678324-3-drupal-theme-bootstrapModal-is-not-a-function.patch | 631 bytes | akalam |
|
Comments
Comment #2
Macronomicus CreditAttribution: Macronomicus commentedyea, that was needed, otherwise it doesnt work at all for me.
Comment #3
akalam CreditAttribution: akalam at Atenea tech commentedWorked for me. Thanks Michèle. Patch attached
Comment #4
smk-ka CreditAttribution: smk-ka commentedThat fixed it. Linked related core issue for reference.
Comment #5
Dave ReidPull request created at https://github.com/drupal-media/entity_embed/pull/211 for merging.
Comment #7
Dave Reid