Issue Bug Closed

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

David Gurk 07/14/23, 09:34 updated 04/09/24, 18:35

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:
be-edit-document-label-fields.png

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:
be-list.png

The problem

In the record edit view the form title contains HTML:
be-edit-document-title.png

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.