This file contains hidden or 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 hidden or 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 the root page in current page tree | |
$pid = intVal($_GET['id']); | |
$page = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository'); | |
$root = array_pop($page->getRootLine($pid)); |
This file contains hidden or 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
/** | |
* cacheManager | |
* | |
* @var \TYPO3\CMS\Core\Cache\CacheManager | |
* @inject | |
*/ | |
protected $cacheManager; | |
// if (($result = $this->cacheManager->getCache('extension_key')->get('cacheKey')) === false) { | |
// $query = $this->createQuery(); |
This file contains hidden or 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
/** | |
* persistenceManager | |
* | |
* @var \TYPO3\CMS\Extbase\Persistence\Generic\PersistenceManager | |
* @inject | |
*/ | |
protected $persistenceManager; | |
// $this->persistenceManager->persistAll(); |
This file contains hidden or 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
<snippet> | |
<content><![CDATA[ | |
console.${2:log}(${1:var}); | |
]]></content> | |
<tabTrigger>log</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> |
This file contains hidden or 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
html { | |
scroll-behavior: smooth; | |
} | |
@media screen and (prefers-reduced-motion: reduce) { | |
html { | |
scroll-behavior: auto; | |
} | |
} |
This file contains hidden or 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
$saltFactory = \TYPO3\CMS\Saltedpasswords\Salt\SaltFactory::getSaltingInstance('', 'FE'); | |
$password = $saltFactory->getHashedPassword($user['passwort']); |
This file contains hidden or 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
✖ ✖ | |
✕ ✕ |
This file contains hidden or 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
<v:page.info pageUid="{pageUid}" as="page"> | |
{v:resource.record.fal(table: 'pages', field: 'og_image', record: page) -> v:iterator.first() -> | |
v:variable.set(name: 'ogImage')} | |
<f:variable name="crop">{ogImage.crop -> v:format.json.decode()}</f:variable> | |
<f:link.typolink parameter="{page.uid}" class="{f:if(condition: page.current, then: ' current')}" title="{page.title}"> | |
<f:if condition="{ogImage}"> | |
<figure> | |
<f:image src="{ogImage.uid}" treatIdAsReference="1" cropVariant="feature" maxWidth="364" maxHeight="364" /> | |
</figure> | |
</f:if> |
This file contains hidden or 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
baseVariants: | |
- base: "https://domain.com" | |
condition: 'getenv("HTTP_HOST") == "domain.com"' |
OlderNewer