Project

General

Profile

Actions

Bug #49827

closed

Rootline in TSFE->tmpl is broken when translation is used and is_siteroot is set in between

Added by Martin Holtz over 11 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2013-07-09
Due date:
% Done:

0%

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

Description

This bug seems to be related to #43668 - but IMHO is a bit different.

There is a problem with the rootline when translation is used and is_siteroot is not set on the root page but somewhere in between the rootline.

- root [1] 
-- starting [2] is_siteroot=1
--- submenue [3]

In the default language i get the rootline "starting <- submenue" but when translation is used, i get the rootline "root <- starting <- submenue". So the menu rendering does not work correct.

When calling TypoScriptFrontendController->updateRootLinesWithTranslations(), $this->tmpl->rootLine has been loaded with the the rootline up to "is_siteroot=1". So the rootline is "starting <- submenue."

But then $this->tmpl->rootLine is overwritten by $this->sys_page->getRootLine() an sets the rootline to "root <- starting <- submenue".

Afaik the check against "is_siteroot" is done in
TYPO3::CMS::Core::TypoScript::TemplateService->processTemplate

Line 686 // If the template record is a Rootlevel record, set the flag and clear the template rootLine (so it starts over from this point)

[[http://api.typo3.org/typo3cms/current/html/_template_service_8php_source.html#l00597]]

The solution of Sven Wappler [[http://forge.typo3.org/issues/43668#note-15]] works for us, but i had not tested it with mountpoints f.e. and do not know yet, if it has some sideeffects too.


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #43668: Rootline in TSFE->tmpl is broken when translation is usedClosed2012-12-06

Actions
Related to TYPO3 Core - Bug #44311: Menustate CUR not working for translations in 6.0.0Closed2013-01-04

Actions
Actions

Also available in: Atom PDF