Actions
Bug #101351
closedBackend page title for the edit record view displays HTML instead of filename
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2023-07-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint
Description
The setup¶
If have custom Extbase records for downloads which reference each a single file and allow to set a translatable download title. If the download title isn't set, the frontend fallbacks to the file name of the referenced file.
This is a slice from the editor mask in the backend:
The same behaviour is defined for the backend via TCA:
return [
'ctrl' => [
// ...
'label' => 'title',
'label_alt' => 'file',
// ...
],
// ...
];
For the list of the download records in the backend, this behaviour works as expected and the filename is used as fallback:
The problem¶
In the record edit view the form title contains HTML:
The expection¶
I would expect the same behaviour like in the table view. So the title should read:
Edit Download "Einkaufsbedingungen.pdf" on page "Download"
What to know¶
- The edit record title is rendered by public/typo3/sysext/backend/Classes/Form/Container/OuterWrapContainer.php
- The markup of the unwanted record title is generated by public/typo3/sysext/core/Classes/Resource/Service/UserFileInlineLabelService.php
I'm not sure which place is the right place for fixing this. I hope someone has a better view on this.
Files
Actions