Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TYPO3 Remove "Select & Upload Files" button

Removing the "Select & Upload Files" button from Page properties works with the following line in PageTSConfig:

TCEFORM.pages.media.config.appearance.fileUploadAllowed = 0

Now I want to remove the "Select & Upload Files" button within content elements (for example with CType "textmedia"), too.

I tried out several things, but with no success. I found no working PageTSConfig "rule" for this case. Does somebody know how the "Select & Upload Files" button can be removed for content elements like textmedia elements?

Using TYPO3 8.7.1

like image 448
Dennis Dittmann Avatar asked Aug 31 '25 00:08

Dennis Dittmann


1 Answers

The code you use is always the same.

In PageTsConfig you have to use:

TCEFORM.[TABLE].[COLUMN].config.appearance.fileUploadAllowed = 0

In TCA you have to use:

$GLOBALS['TCA']['TABLE']['columns']['COLUMN']['config']['appearance']['fileUploadAllowed'] = 0;

You have to replace TABLE with the table you want to modify and COLUMN with the column you want to modify.

In page properties you have pages as TABLE and media as COLUMN.
In textmedia you have tt_content as TABLE and assets (i think) as COLUMN.

like image 134
Kevin Appelt Avatar answered Sep 02 '25 14:09

Kevin Appelt