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 / my-typo3-public-profiles.md
Last active July 29, 2025 08:50
My TYPO3 Public Profiles

💡 List of public TYPO3 profiles

This list of public my.typo3.org profiles serves as a source of inspiration for anyone looking to increase their visibility within the TYPO3 community.
Many members use their profiles to highlight their contributions, certifications, memberships, or projects.

You may find helpful ideas here on how to build or improve your own profile.
A well-maintained profile can help you gain visibility as a contributor, speaker, or service provider.

<?php
declare(strict_types=1);
namespace VendorName\Sitepackage\Event\Listener;
use TYPO3\CMS\Core\Attribute\AsEventListener;
use TYPO3\CMS\Core\Resource\Event\BeforeFileProcessingEvent;
use TYPO3\CMS\Core\Resource\File;
use TYPO3\CMS\Core\Resource\FileInterface;
@ErHaWeb
ErHaWeb / FixMmDuplicatesCommand.php
Last active June 14, 2025 09:38
Fix duplicates in TYPO3 MM tables
<?php
declare(strict_types=1);
namespace VendorName\Sitepackage\Command;
use Doctrine\DBAL\Exception;
use Psr\Log\LoggerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
@ErHaWeb
ErHaWeb / README.md
Last active July 26, 2025 10:00
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 25, 2025 09:38
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: