Project

General

Profile

Actions

Bug #48475

closed

TMENU: no ACTIFSUB in rootLine

Added by Dr. Reinhard Kusel almost 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-05-23
Due date:
% Done:

0%

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

Description

In a TMENU a page in the rootLine is not rendered as ACTIFSUB when there are more than one subpages and one of these subpages is opened. In fact it is renederd as IFSUB.

temp.menu {
special = directory
special.value = 1
1 = TMENU
1 {
expAll = 1
wrap = <ul id="nav">|</ul>
noBlur = 1
NO = 1
NO.wrapItemAndSub = <li>|</li>
NO.ATagParams = class="no"
IFSUB < .NO
IFSUB.ATagParams = class="ifsub"
ACT < .NO
ACT.ATagParams = class="act"
ACTIFSUB < .NO
ACTIFSUB.ATagParams = class="actifsub"
}
2 < .1
2.wrap = <ul>|</ul>
}

Actions #1

Updated by Dr. Reinhard Kusel almost 11 years ago

  • Assignee deleted (Dr. Reinhard Kusel)
Actions #2

Updated by Philipp Gampe almost 11 years ago

I got a PM with some more details ... just recording it here so it is not lost.

 
Ich 
hab ein wenig in AbstractMenuContentObject.php debuged und festgestellt, dass 
schon das Array $this->tmpl->rootLine in AbstractMenuContentObject.php falsch 
belegt ist. Es enthält nur ein Element [0][ITEM:17], wenn ich die Seite mit 
uid 17 aufgerufen habe und diese eine von mehreren Unterseiten ist. Gibt es 
nur eine Unterseite (z.B. mit uid 8), gibt es drei Elemente [0][ITEM:1],[1]
[ITEM:2],[3][ITEM:8], also die komplette rootLine, wenn ich diese Unterseite 
aufrufe. Der Wurm ist also offenbar in der Generierung der rootLine. Hope 
that helps.

Ich vermute ja, dass bei der Erstellung der rootLine einmal ein einzelner Wert 
ausgewertet wird (nur eine Unterseite) oder ein Array von Werten. Da fehlt 
wohl eine Fallunterscheidung mit if (is_array(...)) { mehrere Unterseiten } 
else { nur eine Unterseite }. Bislang wird nur der else-Zweig richtig 
bearbeitet.

Actions #3

Updated by Mathias Schreiber over 9 years ago

  • Status changed from New to Closed
  • Is Regression set to No

works on master

Actions

Also available in: Atom PDF