Actions
Bug #99766
openMake it possible to deactivate "Add new media asset" in linkbrowser for type=input und renderType=inputLink and new type="link" (v12)
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".
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
Actions