Typo3 8: debug queries

Seems like this has changed in the newest typo3 version, so I created a static function in my DebugService: public static function debugQuery($query){ $objectManager = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(‘TYPO3\\CMS\\Extbase\\Object\\ObjectManager’); $queryParser = $objectManager->get(\TYPO3\CMS\Extbase\Persistence\Generic\Storage\Typo3DbQueryParser::class); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getSQL()); \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($queryParser->convertQueryToDoctrineQueryBuilder($query)->getParameters()); }

Fluid: inline notation with a value

What I needed was the inline notation for f:format.currency. Usually it looks like this: <f:format.currency currencySign=”€” decimalSeparator=”,” thousandsSeparator=”.” prependCurrency=”false” decimals=”2″>{somevar}</f:format.currency> I needed this in an attribute and therefore needed the inline notation. The solution: {somevar -> f:format.currency(currencySign:’€’,decimalSeparator:’,’,thousandsSeparator:’.’,prependCurrency:’false’, decimals:2)} A link […]