Project

General

Profile

Actions

Bug #17632

closed

t3lib_page::getMenu does not check for existance of language overlay

Added by Adam Nojszewski over 16 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-09-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Function getMenu in t3lib_page class does not check for existence of current language version. This makes shortcut pages point to pages, that do not have current language version, so user jumps out to default language.

Example case:
- page "A" is configured as shortcut to first subpage, and is made both in default and alternative (L=1) language
- page "B" is first subpage of "A": and is made only in default language.
- page "C" is second subpage of "A": and is made in both languages.
- When using alternative language (L=1) and accessing page "A" typo3 doesn't serve page "C" (in alt language) but page "B" (in default language)

Solution (applied by me to both 3.* and 4.* versions of typo3):
- open file /t3lib/class.t3lib_page.php
- find finction getMenu
- at the end of function body find:
if (is_array($row)) {
$output[$origUid] = $this->getPageOverlay($row);
}
- replace it with:
if (is_array($row)) {
$overlay=$this->getPageOverlay($row);
if($this->sys_language_uid){
if($row!=$overlay)$output[$row["uid"]]=$overlay;
}else{
$output[$row["uid"]]=$overlay;
}
}

I suggest to change it in next version of typo

(issue imported from #M6405)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16148: IFSUB and ACTIFSUB of Menus fails with pagetype shortcut as subpageClosed2006-05-15

Actions
Actions #1

Updated by Alexander Opitz almost 11 years ago

  • Category deleted (Communication)
  • Status changed from New to Needs Feedback
  • Target version deleted (0)

The issue is very old, does this issue exists in newer versions of TYPO3 CMS (4.5 or 6.1)?

Actions #2

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF