Skip to content

Commit

Permalink
[BUGFIX] Add missing typoscript declaration
Browse files Browse the repository at this point in the history
- remove dead code
  • Loading branch information
twoldanski authored and lukaszuznanski committed Nov 15, 2023
1 parent c360c96 commit f57faec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Classes/ContentObject/JsonContentObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
use Psr\Log\LoggerAwareTrait;
use RecursiveArrayIterator;
use RecursiveIteratorIterator;
use TYPO3\CMS\Core\Configuration\Features;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Frontend\ContentObject\AbstractContentObject;
use TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor;
Expand Down Expand Up @@ -177,7 +176,6 @@ protected function processFieldWithDataProcessing(array $dataProcessing): mixed
);

$dataProcessingData = null;
$features = GeneralUtility::makeInstance(Features::class);

foreach ($this->recursiveFind($dataProcessing, 'as') as $value) {
if (isset($data[$value])) {
Expand Down
9 changes: 9 additions & 0 deletions Configuration/TCA/Overrides/sys_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,13 @@
'Configuration/TypoScript',
'Headless'
);

/**
* Mixed-Mode TypoScript for Headless
*/
ExtensionManagementUtility::addStaticFile(
'headless',
'Configuration/TypoScript/Mixed',
'Headless - Mixed mode JSON response'
);
});

0 comments on commit f57faec

Please sign in to comment.