Project

General

Profile

Actions

Bug #44129

closed

isCurrent in other then default language

Added by Stefan Bruggmann almost 12 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Localization
Target version:
-
Start date:
2012-12-19
Due date:
% Done:

0%

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

Description

In the default language is everything ok.
In the other languages no TMENU get the status "current".

typo3\sysext\frontend\Classes\ContentObject\Menu\AbstractMenuContentObject.php
changing line 1482 from

if ($uid && !strcmp(end($this->rL_uidRegister), ('ITEM:' . $testUid))) {

to
if ($uid && $uid==$GLOBALS['TSFE']->id) {

fixes "my" problem.

Actions #1

Updated by Jigal van Hemert almost 12 years ago

The solution needs to be different, because it must support Mount Points.

Actions #2

Updated by Mathias Schreiber almost 10 years ago

  • Target version changed from 6.0.1 to 7.2 (Frontend)
  • Is Regression set to No
Actions #3

Updated by Benni Mack over 9 years ago

  • Target version changed from 7.2 (Frontend) to 7.4 (Backend)
Actions #4

Updated by Susanne Moog over 9 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #5

Updated by Benni Mack about 9 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #6

Updated by Mathias Schreiber about 9 years ago

  • Target version deleted (7 LTS)
Actions #7

Updated by Susanne Moog about 7 years ago

  • Category changed from Content Rendering to Localization
Actions #8

Updated by Riccardo De Contardi about 5 years ago

  • Status changed from New to Needs Feedback

Does this issue still exist on 9.5? I tried a short test with 9.5.10:

  • clean 9.5.10 installation
  • two languages: italian (default) and english (id=1)
  • I created some pages (at least 2 levels) and translated them
  • I added the following TypoScript code:
page = PAGE
page.20 = HMENU
page.20{
  1 = TMENU
  1.expAll = 1
  1.wrap = <ul>|</ul>
  1.NO.wrapItemAndSub = <li>|</li> 
  1.CUR = 1
  1.CUR.wrapItemAndSub = <li> <strong>current: - </strong>|</li> 
  1.ACT = 1
  1.ACT.wrapItemAndSub = <li> <strong>active: - </strong>|</li>   

  2 < .1
  3 < .1
}

And it seems that the current and active states are set for the translated pages.

Is this test sufficient or should I perform a different test? Could you add a detailed step-by-step test procedure to reproduce this issue? Thank you!

Actions #9

Updated by Riccardo De Contardi almost 5 years ago

  • Status changed from Needs Feedback to Closed

No feedback since the last 90 days => closing this issue.

If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.

Thank you and best regards

Actions

Also available in: Atom PDF