Issue Bug Closed

#70526Location of formatToPageTypeMapping option

Christian Futterlieb 10/09/15, 10:27 updated 10/02/18, 11:28

Description

As in #66352 mentioned, the option formatToPageTypeMapping has to be configured in

plugin.tx_myextension.settings.view.formatToPageTypeMapping

instead of

plugin.tx_myextension.view.formatToPageTypeMapping

which is be the obvious logical location. The latter is also documented in http://forge.typo3.org/attachments/download/26372/TYPO3-v6-2-whats-new.english.pdf

This could be resolved by changing the constant when fetching the configuration:

// current
$settings = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS, $extensionName);

// resolution
$settings = $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, $extensionName);

IMO this is a bug, but resolving it would be a breaking change for extensions. I’ll push a possible solution to gerrit to discuss it there.

Reviews 1