Show Menu
Cheatography

Typo3 Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Debug query

debug(GeneralUtility::makeInstance(Typo3DbQueryParser::class)->parseQuery($query));

Objects

/* @var ConfigurationManager $configurationManager /
$configurationManager = $this->objectManager->get(ConfigurationManager::class);

/* @var TypoScriptService $typoScriptService /
$typoScriptService = $this->objectManager->get(TypoScriptService::class);

/* @var FlexFormService $flexFormService /
$flexFormService = $this->objectManager->get(FlexFormService::class);

content ID

<div id="c{record.uid}" class="content">
  <p>Hello World</p>
</div>
always add content ID to content elements to keep compat­ibi­llity with typo3 core