I would like to show you my way how I integrate app icons cleanly into my own TYPO3 sitepackage.
<?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; |
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.
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';
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.
I have stored the scripts under:
~/.shellscripts/typo3/
I use the following aliases: