Bug #44129
closed
isCurrent in other then default language
Added by Stefan Bruggmann almost 12 years ago.
Updated almost 5 years ago.
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.
The solution needs to be different, because it must support Mount Points.
- Target version changed from 6.0.1 to 7.2 (Frontend)
- Is Regression set to No
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
- Target version changed from 7.4 (Backend) to 7.5
- Target version changed from 7.5 to 7 LTS
- Target version deleted (
7 LTS)
- Category changed from Content Rendering to Localization
- 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!
- 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
Also available in: Atom
PDF