Project

General

Profile

Actions

Bug #98067

closed

data-content is not respected within backend modals

Added by Thomas Schilp over 2 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
Start date:
2022-08-02
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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!

Actions

Also available in: Atom PDF