Feature: #84250 - Separately enable / disable "Add media by URL" and "Select & upload files"
See forge#84250
Description
A new appearance property "fileByUrlAllowed" is used to separately enable / disable the buttons "Add media by URL" and "Select & upload files".
file
now only hides the button "Select & upload files".Upload Allowed = false file
now hides the button "Add media by URL".By Url Allowed = false
If "elementBrowserType" is set to "file" both values are true by default.
Example
$GLOBALS['TCA']['pages']['columns']['media']['config']['appearance'] = [
'fileUploadAllowed' => false,
'fileByUrlAllowed' => false,
];
Copied!
This will suppress both buttons and only leave "Create new relation".
Impact
Users have to use the new appearance property "fileByUrlAllowed" to hide the button "Add media by URL"