Issue Bug Closed

#75014l18n_cfg not respected in fluid_styled_contents of type special menu

Daniel Siepmann 03/11/16, 09:45 updated 05/02/18, 18:53

Description

*The result*
Pages in default location are shown in menus, even if they should not.

*How to reproduce*
Create a page in default language, select option “Hide default translation of page” under “Behaviour”.
Create a content element of kind “special menus” and select the created page. Create the element in default language.
The page will be shown and link is broken as page should not be visible because it’s not available in default language.
https://docs.typo3.org/typo3cms/FrontendLocalizationGuide/BasicSetupOfALocalizedWebsite/LocalizationOverviewOfThePageTree/Index.html#hiding-default-translation-of-pages

For our own implementation we had to add the following SQL to fix the issue:

        if ($this->arguments[static::ARGUMENT_TABLE] === 'pages') {
            $where .= ' AND pages.l18n_cfg != 1';
        }

Reviews 2