Project

General

Profile

Actions

Bug #99766

open

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

Added by Sybille Peters about 1 year ago. Updated 8 months ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2023-01-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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


Files

add_new_media_asset.png (66 KB) add_new_media_asset.png Sybille Peters, 2023-01-31 10:21

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Bug #99767: Allowed file types are not displayed with type="input", renderType="inputLink" and new type="link" (in v12)New2023-01-31

Actions
Actions #1

Updated by Sybille Peters about 1 year ago

  • Description updated (diff)
Actions #2

Updated by Sybille Peters about 1 year ago

  • Description updated (diff)
Actions #3

Updated by Sybille Peters about 1 year ago

  • Subject changed from Make it possible to deactivate "Add new media asset" in linkbrowser for type=input und renderType=inputLink to Make it possible to deactivate "Add new media asset" in linkbrowser for type=input und renderType=inputLink and new type="link" (v12)
Actions #4

Updated by Sybille Peters about 1 year ago

  • Related to Bug #99767: Allowed file types are not displayed with type="input", renderType="inputLink" and new type="link" (in v12) added
Actions #5

Updated by Sybille Peters about 1 year ago

  • Description updated (diff)
Actions #6

Updated by Sybille Peters 8 months ago

  • Description updated (diff)
Actions

Also available in: Atom PDF