How can I change the title of open modal to be the node title?

Created on 11 November 2024, 10 days ago

Hello,

I have a question regarding the Bootstrap Modals provided by this module.

Is it possible to have a dynamic value for the modal title, when it is open?

It appears from the field group manage display it is hard coded but I would like to use tokens or twig template changes to have the title of the open modal be the title of the node it is displaying.

In short, is it possible to have the title of the modal be the node label/title?

For example, see these screenshots.

I tried the tokens module but it doesn't appear to be supported for this module. I've also tried passing the title value from the node to the modal template but this removed all the other values I had set in the manage display for the modal.

Thanks very much

💬 Support request
Status

Active

Version

3.0

Component

Documentation

Created by

🇳🇿New Zealand dominictaylor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024