#105256TypoScript USER / EXTBASEPLUGIN does not set settings
Description
When using USER (or the new EXTBASEPLUGIN), it’s not possible to manipulate the plugin settings, anymore.
Previously (I think until v12), it was possible to set the settings in TypoScript like that:
lib {
login = USER
login {
userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
extensionName = Felogin
pluginName = Login
settings < plugin.tx_felogin_login.settings
settings {
pages = 47
showForgotPassword = 1
}
}
}
Those settings were accessable in the controller and the fluid template.
This is not possible, anymore. With EXTBASEPLUGIN it’s not possible, either.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 6
-
Christian Kuhn commented and changed status
NewNeeds Feedback 10/10/24, 13:41 -
Christian Kuhn commented 10/10/24, 13:52
settings < plugin.tx_felogin_login.settings
this is imho obsolete anyways, since extbase always overloads any TS with plugin.tx_felogin_login.settings, since extbase considers this “more specific”. As such, I think, this issue probably popped up with the to-extbase transition of felogin already? I’d bet there are some other existing issues that discussed this impact already, and this is not a “new” thing and can not be considered a new regression.
a solution is to use plugin.tx_felogin_login.settings.pages=47 to solve this, and I think this is the way to go here?!
-
Torben Hansen commented 10/10/24, 15:06
This is at least no general problem with TypoScript USER or EXTBASEPLUGIN. I just tested the example from ext:news (https://docs.typo3.org/p/georgringer/news/11.4/en-us/Tutorials/BestPractice/IntegrationWithTypoScript/Index.html) and also my own extension and using a plugin with TypoScript and overriding inherited plugin settings by TypoScript works.
The problem here however seems to be, that ext:felogin uses a plugin specific TypoScript configuration (which is tx_felogin_login) by default and not a global like tx_felogin. In this case, Extbase configuration manager overrides the TypoScript in `overrideConfigurationFromPlugin` with the plugin specific configuration we have globally for the plugin.
In general, extbase always overrules TypoScript with plugin specific (tx_myext_plugin) TypoScript.
So Lolli is right, that this most likely was introduced with the transition of ext:felogin to an extbase based extension.
-
Torben Hansen changed Related to #105269 10/11/24, 06:39
-
Tobias Jungmann commented 10/11/24, 13:16
Ah, I see. My bad. Thank you very much! That’s okay for me. Issue can be closed.
But in my opinion the specific configuration I give into the cObject shouldn’t be overruled by a global configuration. The same applies to the flexForms configuration. If I configure a folder (e.g.
47) aspagesin the felogin plugin flexForms in backend, the value is overriden by the globalplugin.tx_felogin_login.settings.pages(e.g.23) configuration.In this specific case with felogin it wouldn’t be possible to define two different plugins with different settings via typoscript (e.g. login1 for all pages in a test tree, login2 for the rest). Or do I miss something?
-
Torben Hansen commented and changed status
Needs FeedbackClosed 10/11/24, 13:21The problem here is, that ext:felogin defines TypoScript as
plugin.tx_felogin_login. Changing extbase configuration manager is no option here, so I created #105269 in order to evaluate renamingplugin.tx_felogin_logintoplugin.tx_feloginas breaking change for v14.Closing issue as requested.
That’s hard to track down. I was able to reproduce this in both v12 and v13, so this is at least not an v13 only thing, and I’m unsure if this is an issue at this point at all.
Could you confirm the above snippet does not end up with ‘pages=47’ in v12 as well?
If so, we need to dig in v12 already to then see if this is intended behavior or at this point in time, since for now I was looking for a v13-only regression and could not find one since it looks to me as if this is in v12 like that as well?