Skip to content

Instantly share code, notes, and snippets.

View ErHaWeb's full-sized avatar
🏠
Working from home

Eric Harrer ErHaWeb

🏠
Working from home
View GitHub Profile

Customization of allowed file extensions for individual DB fields

With the following code you are able to remove file extensions from the list of allowed file extensions in field tx_news_domain_model_news.fal_media. Just edit the array $removeFileExtensionsArray and copy the code into file: EXT:/Configuration/TCA/Overrides/tx_news_domain_model_news.php of your sitepackage.

Display uid beside content title in select field "Transl.Orig" tt_content.l18n_parent

To find back to the connected mode in case of inconsistent content ("mixed mode") it is an editorial help if the unique id uid of content elements in the selection field "Transl.Orig" tt_content.l18n_parent is displayed regardless of whether debug mode is activated and the admin status of the backend user.

To achieve this, place this file in your sitepackage under: EXT:sitepackage/Classes/User/Tca.php and add the following line in EXT:sitepackage/Configuration/TCA/Overrides/tt_content.php:

$GLOBALS['TCA']['tt_content']['ctrl']['label_userFunc'] = Tca::class . '->labelWithUid';
@ErHaWeb
ErHaWeb / README.md
Last active March 15, 2024 19:04
TYPO3 Auto-Installation Bash scripts to install and remove v10, v11, v12, v13 and dev

TYPO3 Auto-Installation

Since I need a TYPO3 test environment from time to time, I use these bash scripts for the automatic installation and removal of TYPO3. The installation script currently supports TYPO3 versions 10, 11, 12, 13 and dev.

Installation

I have stored the scripts under:

~/.shellscripts/typo3/

I use the following aliases: