Skip to content

BUG: Backend Page Module does not display Flux children in languages ≠ 0 on TYPO3 12 #2274

@julebbb

Description

@julebbb

I have checked that the bug exists in the dev-development branch
Yes
If you're about to answer "no" here, it is your responsibility to check dev-development before opening a bug report!

I have checked that there are no already open issues or recently closed issues about this bug
Yes
If you're about to answer "no" here, it is your responsibility to first check the open and recently closed issues for potential duplicaates.

Describe the bug
When I copy a flux content with tt_content or other inside the flux content it is not display if the language is other than 0. The bug is also if I create a content without using translate :

Image

I search and find that the problem come here in class FluidTYPO3\Flux\Integration\PreviewView line 258 :

if (isset($language)) { $context = $context->cloneForLanguage($language); }

The language will always be 0 so the contents will not display.
I find with a little help this solution :

if (isset($language)) { $context = $context->cloneForLanguage($language); $configuration = $context->getDrawingConfiguration(); if (method_exists($configuration, 'setSelectedLanguageId')) { $configuration->setSelectedLanguageId($language->getLanguageId()); } }

and it work :

Image

If you want to produce the problem, you just have to create a flux content in another language and add a content inside when go to Page and it will not display.

Additional context
I have the problem in TYPO3 12.4.40 and before but it's working in TYPO3 10 and 11.
I have the last version of Flux and try in development branch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions