Issue Bug Resolved

#99766Make it possible to deactivate "Add new media asset" in linkbrowser for type=input und renderType=inputLink and new type="link" (v12)

Sybille Peters 01/31/23, 10:28 updated 11/05/26, 10:00

Description

Sometimes showing the “Add new media asset” in the file tab of the link browser makes no sense, for example when the user should select only a specific file type in a flexform.

If you use type=“input”, renderType=“inputLink” it is not possible to deactivate this AFAIK.

This used to be / is possible with type=“inline”.

In config/appearance (TCA):
> fileByUrlAllowed = false now hides the button “Add media by URL”.
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/10.1/Feature-84250-SeparatelyEnableDisableAddMediaByURLAndSelectUploadFiles.html

appearance.fileByUrlAllowed is not possible in type=“input” / renderType=inputLink – has no effect.

Reproduce

There is an example extension available to reproduce, was tested with v12 latest main:

https://github.com/sypets/sypets_example_inputlink

Versions

  • v11 and v12 with type=“input”, renderType=“inputLink”
  • this can also be reproduced with v12, with type=“link”

Example

TYPO3 v11

<settings.link>
  <TCEforms>
    <label>Link</label>
    <config>
      <type>input</type>
      <renderType>inputLink</renderType>
      <fieldControl>
        <linkPopup>
          <options>
            <allowedExtensions>bib</allowedExtensions>
            <blindLinkFields>class,param,target,title</blindLinkFields>
            <blindLinkOptions>page,mail,telephone,folder,tx_calendarize_domain_model_event,news</blindLinkOptions>
            <title>Select specific file (*.bib)</title>
          </options>
        </linkPopup>
      </fieldControl>
    </config>
  </TCEforms>
</settings.link>

screenshot

add_new_media_asset.png

Reviews 2

Files 1

History 710

  1. Sybille Peters changed subject Make it possible to deactivate "Add new media asset" in linkbrowser for type=input und renderType=inputLink Make it possible to deactivate "Add new media asset" in linkbrowser for type=input und renderType=inputLink and new type="link" (v12) <span data-processor="relativetime" data-value="2023-01-31T12:21:37+00:00" > 01/31/23, 12:21 </span>

  2. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-05T10:00:26+00:00" > 11/05/26, 10:00 </span>

    Applied in changeset commit:92f6f387a6485c4213c706e89be14dbd363aba6a.