Skip to content

Commit

Permalink
feat: remove extending of lib.doktypeName TypoScript for EXT:headless
Browse files Browse the repository at this point in the history
Since flexible_pages automatically adds new dokTypes to the headless TypoScript since v2.2 it is no longer necessary to add this individually.
  • Loading branch information
schloram committed Nov 15, 2021
1 parent 3cc59bd commit 0947df8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ext_localconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@

$init = function ($extKey) {
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['flexible_pages']['tx_flexiblepages_pagelist']['templates']['news'] = 'News';

if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('headless')) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('
lib.doktypeName {
87 = TEXT
87.value = News
}
');
}
};

$init(\ITplusX\FlexiblePages\Utilities\ExtensionConfigurationUtility::EXTKEY);
Expand Down

0 comments on commit 0947df8

Please sign in to comment.