Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File field with allowLanguageSynchronization #608

Open
ursbraem opened this issue Nov 29, 2023 · 7 comments
Open

File field with allowLanguageSynchronization #608

ursbraem opened this issue Nov 29, 2023 · 7 comments
Labels

Comments

@ursbraem
Copy link
Contributor

Versions: TYPO3 12.4.8 with Mask 8.3.7

We have an asset field to be used for images. With the option allowLanguageSynchronization there is the following error when editing the field in the Backend:

image

As opposed, the error is not thrown when using the "media" field.

ScreenShot 2023-11-29 at 11 54 31@2x

Maybe a bug or just a configuration issue?

@nhovratov
Copy link
Collaborator

This is interesting, looks like a TYPO3 bug. If you set allowLanguageSynchronization for a core field, Mask generates a columnsOverride section. TYPO3 just looks through all fields, if there is at least one with allowLanguageSynchronization set. But it does not apply the Content element specific overrides.

If you want this option for ALL image fields, you can use TCA overrides. It does not work for a specific Content Element so to seem.

$GLOBALS['TCA']['tt_content']['columns']['image']['config']['behaviour']['allowLanguageSynchronization'] = true

@ursbraem
Copy link
Contributor Author

Thanks Nikita! Should I do something?

@nhovratov
Copy link
Collaborator

As I said, please remove the option from your field and add it via TCA, of you really need it.

@ursbraem
Copy link
Contributor Author

ursbraem commented Dec 1, 2023

Thanks! I meant regarding the core bug, I'm a bit out of touch what's the best way to report one so it doesn't simply sit there or produce a dupe.

@nhovratov
Copy link
Collaborator

I will take care, don't worry! But it has very low priority. This is again something, only comes to light, because you have so many possibilities with Mask, which will almost never be done manually.

@ursbraem
Copy link
Contributor Author

ursbraem commented Dec 1, 2023

Ah I see! Thanks!

@nhovratov
Copy link
Collaborator

Related to Core issue: https://forge.typo3.org/issues/86493

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants