Skip to content

Conversation

nicodh
Copy link

@nicodh nicodh commented Sep 23, 2025

The keys in a typoscript configuration are considered to express the priority of the values.

Like in view.templateRootPaths the highest value should be used. This is not the case with the current implementation.

This might be caused by a core issue, since
->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK, 'femanager'); should return the arrays in correct order. But it doesn't, the key depend on the order of imports of typoscript.

The Typoscript Module takes that in consideration and shows the correct order:

Typoscript-ActiveRecord

The configuration received in

$configuration = self::getConfigurationManager()
has a random order:

FrontendTypoScript-setupArray

Since finally only the last entry is returned in

return $matches === [] ? '' : end($matches);
this results in a false value. It is not possible to override the value from outside

This PR restores the order by sorting the keys and returning an array of sorted entries according to the key order.

@nicodh
Copy link
Author

nicodh commented Sep 23, 2025

Related to #344 which is not solved yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant