Project

General

Profile

Actions

Bug #20873

closed

Preview of hidden page translations is not possible

Added by Tobias Pinnekamp over 15 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-08-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If the translation of a page is marked as hidden and the default language is not and you try to preview it, you'll get an error in the frontend that the "Page is not available in the requested language". With the default language of a page previewing is possible without restrictions.

The problem seems to be line 796 in class.tslib_fe.php

$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('hidden', 'pages', $idQ.' AND hidden!=0 AND deleted=0');

Here is checked if the default language of a page is hidden. If so the preview flags will be set. If not, preview mode is disabled, so that in further processing no page translation overlay will be found because the method t3lib_pageSelect::enableFields checks against "hidden=0".

The only way to show hidden page translations in the frontend is to use the admin panel and set the flag "Show hidden records". But this is a little bit inconsistent for a backend user if he just uses the magnifiying glass icons to show up pages.

(issue imported from #M11704)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #92775: Preview of a page in an additional language fails if default and localized page is hiddenClosed2020-11-05

Actions
Actions

Also available in: Atom PDF