Issue Bug Closed

#75116Preview (hidden) page translation: Page is not available in the requested language

Heiko Hardt 03/14/16, 21:47 updated 10/02/18, 11:18

Description

Hi, I notice that a hidden page-translation will not render a preview like the standard page.

I think this happens cause “pages_language_overlay” will not handled like “pages” within the “\TYPO3\CMS\Frontend\Page\PageRepository::enableFields()” function.

My suggestion is changing:

$show_hidden = $table === ‘pages’
? $this->getTypoScriptFrontendController()->showHiddenPage
: $this->getTypoScriptFrontendController()->showHiddenRecords;

to:

$show_hidden = $table = 'pages' *|| $table = ‘pages_language_overlay’*
? $this->getTypoScriptFrontendController()->showHiddenPage
: $this->getTypoScriptFrontendController()->showHiddenRecords;

kind regards
heiko

Reviews 2