Issue Bug Closed

#84139l18n_cfg not respected in sysext/frontend/Classes/Page/PageRepository.php

Martin R. Krause 03/05/18, 11:03 updated 03/01/19, 20:22

Description

All page gathering and overlaying methods in sysext/frontend/Classes/Page/PageRepository.php do not care for l18n_cfg settings (Hide if no translation, Hide default translation).

Fix idea:

        foreach ($records as $index => $record) {
            if (GeneralUtility::hideIfDefaultLanguage($record['l18n_cfg']) && $this->sys_language_uid === 0) {
                unset($records[$index]);
            }
            if (GeneralUtility::hideIfNotTranslated($record['l18n_cfg']) && $this->sys_language_uid !== 0 && !$record['_PAGES_OVERLAY']) {
                if ($record['uid'] == 2464) die(var_dump($record));
                unset($records[$index]);
            }
        }

Reviews 1