Project

General

Profile

Actions

Bug #70526

closed

Location of formatToPageTypeMapping option

Added by Christian Futterlieb about 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2015-10-09
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

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.

Actions

Also available in: Atom PDF