Skip to content

palette fields missing for tx_bootstrappackage_tab_item's media file references #1611

@oliverschloebe

Description

@oliverschloebe

Bug Report

Prerequisites

  • Can you reproduce the problem on TYPO3 v11.5 LTS
  • Can you reproduce the problem on TYPO3 v12.4 LTS
  • Can you reproduce the problem on TYPO3 v13.4 LTS
  • Did you perform a cursory search
    to see if your bug or enhancement is already reported?

Description

When adding a PDF file to tx_bootstrappackage_tab_item's media field the link field is not showing up so it's impossible to add a link an PDF file.

The issue seems to be in Configuration/TCA/tx_bootstrappackage_tab_item.php, ['columns']['media']['overrideChildTca'] only checking for types \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE and \TYPO3\CMS\Core\Resource\File::FILETYPE_VIDEO.

Adding

\TYPO3\CMS\Core\Resource\File::FILETYPE_APPLICATION => [
    'showitem' => '
        --palette--;;extendedBasicOverlayPalette,
        --palette--;;filePalette',
],

fixed the issue for me. Consider adding \TYPO3\CMS\Core\Resource\File::FILETYPE_TEXT or \TYPO3\CMS\Core\Resource\File::FILETYPE_UNKNOWN so these can be linked too.

Steps to Reproduce

  1. Create a Tab content element.
  2. Add a new tab item.
  3. Add a PDF file to the media field.

Expected behavior

link field showing.

Actual behavior

No link field showing.

Screenshots

Image

Versions

15.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions