Skip to content

Instantly share code, notes, and snippets.

View cepheiVV's full-sized avatar

Patrick Crausaz cepheiVV

View GitHub Profile
@cepheiVV
cepheiVV / SvgViewHelper.php
Created October 9, 2021 16:23
TYPO3 Fluid SvgViewHelper
<?php
namespace Vendor\Extension\ViewHelpers;
/***************************************************************
*
* Copyright notice
*
* (c) 2016 Andrii Pozdieiev <andriy.p@pixelant.se>, Mosa Al-Husseini <mosa@pixelant.se>, Pixelant AB
*
@cepheiVV
cepheiVV / TypoScriptUtility
Last active October 30, 2020 10:21
Load TypoScript Settings
<?php
namespace Vendor\ExtensionName\Utility;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface;
use TYPO3\CMS\Extbase\Object\ObjectManager;
use TYPO3\CMS\Extbase\Configuration\ConfigurationManager;
use TYPO3\CMS\Core\TypoScript\TypoScriptService;
<?php
declare(strict_types=1);
namespace Vendor\MyExt\Indexer;
use Doctrine\DBAL\DBALException;
use Doctrine\DBAL\Result;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Database\ConnectionPool;
@cepheiVV
cepheiVV / TYPO3-ckeditor-arabic-rtl-direction
Last active March 15, 2022 11:30
Add RTL Text direction for e.g. Arabic language support in CKEditor for TYPO3
# 1
# ---------------------------------------------
#
# Add tsconfig to load the custom RTE config:
`RTE.default.preset = Custom`
# 2
@cepheiVV
cepheiVV / 00 Flexform Snippets
Last active June 7, 2022 14:19
TYPO3 Flexform Snippets
# ---------------------------------------------- #
# #
# A collection of TYPO3 flexform snippets #
# #
# ---------------------------------------------- #
@cepheiVV
cepheiVV / KeSearchAdditionalContentFields.php
Created May 24, 2019 06:30
TYPO3 - Index EXT:mask content with EXT:ke_search
<?php
namespace VENDOR\MyCustomExtension\Hooks;
class KeSearchAdditionalContentFields {
/**
* add tx_mask field from tt_content table
*/
public function modifyPageContentFields(&$fields, $pageIndexer)
{