This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set @rootPageId := 15047; | |
set @maxDepth := 99; | |
with recursive children as ( | |
select root.*, 1 as depth | |
from pages root | |
where root.uid = @rootPageId | |
or (root.sys_language_uid > 0 and root.l10n_source = @rootPageId) | |
and root.deleted = 0 | |
union all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace Vendor\Extension\Factory; | |
use GuzzleHttp\Psr7\Uri; | |
use TYPO3\CMS\Core\Exception\SiteNotFoundException; | |
use TYPO3\CMS\Core\Http\Request; | |
use TYPO3\CMS\Core\Http\ServerRequest; | |
use TYPO3\CMS\Core\Routing\SiteMatcher; | |
use TYPO3\CMS\Core\Site\Entity\Site; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugin.tx_indexedsearch { | |
show { | |
rules=0 | |
} | |
settings { | |
targetPid = YOURPID | |
displayRules = 0 | |
exactCount = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const crypto = require('crypto'); | |
const ENCRYPTION_KEY = process.env.ENCRYPTION_KEY; // Must be 256 bits (32 characters) | |
const IV_LENGTH = 16; // For AES, this is always 16 | |
function encrypt(text) { | |
let iv = crypto.randomBytes(IV_LENGTH); | |
let cipher = crypto.createCipheriv('aes-256-cbc', Buffer.from(ENCRYPTION_KEY), iv); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get 10 levels of the tree recursively starting at $pid | |
$pid = intVal($_GET['id']); | |
$queryGenerator = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\QueryGenerator'); | |
$pidList = $queryGenerator->getTreeList($pid, 10, 0, 1); | |
$pids = explode(',',$pidList); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Page TSConfig: | |
tx_gridelements.setup { | |
# Identifier | |
2col { | |
title = 2 Spalten | |
config { | |
colCount = 2 | |
rowCount = 1 | |
rows { | |
1 { |