Issue Bug Closed

#98067data-content is not respected within backend modals

Thomas Schilp 08/02/22, 13:56 updated 07/09/24, 12:46

Description

Triggering a modal by an anchor element as described in https://docs.typo3.org/m/typo3/reference-coreapi/11.5/en-us/ApiOverview/JavaScript/Modules/Modals.html using

<a href="delete.php" class="t3js-modal-trigger" data-title="Delete" data-content="Really delete?">delete</a>

does not replace the standard “Are you shure?” with the content of “data-content”.

All other data-* attributes decribed above (data-title, data-severity, data-button-close-text, data-button-ok-text …) are replaced, but data-content is not.

I tried to trigger the modal within FLUID template in a backend module, so I do not know if triggering within Contoller actions works as expected. But either there is a bug that prevents the modal from using data-content or the API description is wrong.

Thanks a lot for helping and for working on TYPO3!

Reviews 3