Project

General

Profile

Actions

Bug #36616

closed

TYPO3 4.7 sectionIndex not working correctly on multilanguage site

Added by Helmuth Antholzer almost 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2012-04-26
Due date:
% Done:

100%

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

Description

I have set up a site with two languages. I added a content element sitemap (section index). The sectionIndex does not respect sys_language_uid and and all elements are shown, also the ones from alternative language.

Changing the following in function sectionIndex in file class.tslib_menu.php should resolve the problem.

From

if (!$pid) {
  $pid = $this->id;
  if ($GLOBALS['TSFE']->sys_language_uid && count($this->sys_page->getPageOverlay($pid))) {
    $where .= ' AND sys_language_uid=' . intval($GLOBALS['TSFE']->sys_language_uid);
  } else {
    $where .= ' AND sys_language_uid=0';
  }
}

to

if (!$pid) {
  $pid = $this->id;
}                
if ($GLOBALS['TSFE']->sys_language_uid && count($this->sys_page->getPageOverlay($pid))) {
  $where .= ' AND sys_language_uid=' . intval($GLOBALS['TSFE']->sys_language_uid);
} else {
  $where .= ' AND sys_language_uid=0';
}


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #37449: Section Index incorrect outputClosed2012-05-23

Actions
Related to TYPO3 Core - Bug #17354: fallback for menus. "content_fallback;1,0" has no affect for page records (e.g. menu)Closed2007-07-22

Actions
Actions

Also available in: Atom PDF