Configuring language from TypoScript doesn't work
Issue #4
resolved
Hi,
Setting the language using this Typoscript setting doesn't work:
tt_content.list.20.rxshariff_shariff.settings.data.lang = en
The reason for this is that this setting gets resetted in the ShariffController.php:
unset($data['lang']);
I'm not sure why this happens (looks like emptying it for allowing automatic language detection, but then the question is why the TS setting exists).
Comments (4)
-
-
- changed status to resolved
-
@lhilgersom It took me a while now to realize that the
unset
was needed to be backwards compatible with existing plugins, which may still have thelang
set in the flexforms.I pushed a commit now which should allow settings the language again via TS and plugin.
-
reporter Hi Markus, Thanks for sorting that out. Works perfectly now!
- Log in to comment
Indeed an interesting finding. Will take a look. Not sure whether TS and docs need an update, or if the unset() can go away (which I actually doubt).