Project

General

Profile

Actions

Bug #101351

closed

Backend page title for the edit record view displays HTML instead of filename

Added by David Gurk 10 months ago. Updated about 1 month ago.

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

be-edit-document-label-fields.png (10.2 KB) be-edit-document-label-fields.png David Gurk, 2023-07-14 09:19
be-list.png (3.41 KB) be-list.png David Gurk, 2023-07-14 09:23
be-edit-document-title.png (19.1 KB) be-edit-document-title.png David Gurk, 2023-07-14 09:24
Actions

Also available in: Atom PDF