Bug #99766
Updated by Sybille Peters 11 months ago
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 This used to be / is possible with type="inline".* 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 * see also https://docs.typo3.org/m/typo3/reference-tca/11.5/en-us/ColumnsConfig/Type/Inline/Properties/Appearance.html appearance.fileByUrlAllowed is not possible in type="input" / renderType=inputLink - has no effect. h2. Reproduce There is an example extension available to reproduce, was tested with v12 latest main: https://github.com/sypets/sypets_example_inputlink h2. Versions * v11 and v12 with type="input", renderType="inputLink" * this can also be reproduced with v12, with type="link" h2. Example TYPO3 v11 <pre><code class="xml"> <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> </code></pre> h2. screenshot !add_new_media_asset.png!