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
@ErHaWeb
ErHaWeb / README.md
Last active May 13, 2024 14:27
Integration of App Icons in TYPO3

Integration of App Icons in TYPO3

→ to the german version

I would like to show you my way how I integrate app icons cleanly into my own TYPO3 sitepackage.

App Icon Preview generated with https://realfavicongenerator.net/

App Icon Generator

@ErHaWeb
ErHaWeb / README.MD
Last active May 13, 2024 11:39
Customize allowed file extensions

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.

@ErHaWeb
ErHaWeb / README.md
Last active May 13, 2024 11:40
Enhance Transl.Orig display

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 May 17, 2024 12:28
TYPO3 Auto-Installation

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: