Feature #84250

Separatly enable / disable "Add media by URL" and "Select & upload files"

Added by Jan Kornblum about 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Start date:
2018-03-13
Due date:
% Done:

100%

PHP Version:
7.2
Tags:
Complexity:
Sprint Focus:

Description

The BE buttons ("Add media by URL" and "Select & upload files") for a FAL field can currently only be enabled / disabled at once:

TCEFORM.mytable.config.appearance.fileUploadAllowed = 1

It would be nicer to individually enable / disabled them per button. For example by three separate settings:

TCEFORM.mytable.config.appearance.fileBrowseAllowed = 1|0
TCEFORM.mytable.config.appearance.fileSelectAndUploadAllowed = 1|0
TCEFORM.mytable.config.appearance.fileAddMediaByUrlAllowed = 1|0

Related issues

Related to TYPO3 Core - Bug #72605: InlineControlContainer unnecessary dependency causes Problems Closed 2016-01-08

Associated revisions

Revision c2cb3e87 (diff)
Added by Philipp Parzer 9 months ago

[FEATURE] Separately enable / disable "Add media by URL" and "Select & upload files"

A new appearance property "fileByUrlAllowed" is used to separately enable / disable
the buttons "Add media by URL" and "Select & upload files".
fileUploadAllowed = 0 now only hides the button "Select & upload files"
fileByUrlAllowed = 0 now hides the button "Add media by URL"
if "elementBrowserType" is set to "file" both values are true by default

Resolves: #84250
Releases: master
Change-Id: I3c3ae34f7514128cb164a5edc8ed028a86af1238
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60752
Tested-by: Anja Leichsenring <>
Tested-by: TYPO3com <>
Tested-by: Guido Schmechel <>
Tested-by: Daniel Goerz <>
Reviewed-by: Anja Leichsenring <>
Reviewed-by: Markus Klein <>
Reviewed-by: Guido Schmechel <>
Reviewed-by: Daniel Goerz <>

History

#1 Updated by Riccardo De Contardi over 1 year ago

  • Related to Bug #72605: InlineControlContainer unnecessary dependency causes Problems added

#2 Updated by Florian Rival over 1 year ago

I think this feature is missing, it should be possible to hide separately the two buttons.

As a workaround, you can add the following backend css :

To hide "Select & Upload file" :

.inlineNewFileUploadButton {
    display: none !important;
}

To hide "Add media by URL" (not tested) :

.t3js-online-media-add-btn {
    display: none !important;
}

#3 Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60752

#4 Updated by Gerrit Code Review about 1 year ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60752

#5 Updated by Gerrit Code Review about 1 year ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60752

#6 Updated by Gerrit Code Review about 1 year ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60752

#7 Updated by Gerrit Code Review 10 months ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60752

#8 Updated by Gerrit Code Review 10 months ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/60752

#9 Updated by Philipp Parzer 9 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#10 Updated by Benni Mack 6 months ago

  • Status changed from Resolved to Closed

#11 Updated by Lorenz Ulrich 4 months ago

I attached a patch for TYPO3 8.7 for those in need. Can be applied through composer-patches.

Also available in: Atom PDF