Bug #76455

TypoScript TMEMUITEM before and after only work for NO

Added by Philipp Gampe over 4 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2016-06-04
Due date:
% Done:

0%

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

Description

Consider the following TS

lib.nav = HMENU
lib.nav {
    special = directory
    special.value = 1
    1 = TMENU
    1 {
      expAll = 1
      wrap = <ul>|</ul>

      NO = 1
      NO {
        wrapItemAndSub = <li>|</li>
        before = NONONONONONO
      }

      ACT < NO
      ACT {
        wrapItemAndSub = <li class="active"> | </li>
        before = ACTACTACTACTACT
      }

      IFSUB < NO
      IFSUB {
        wrapItemAndSub = <li class="ifsub" >|</li>
        before = IFSUBIFSUBIFSUB
      }

      ACTIFSUB < IFSUB
      ACTIFSUB {
        wrapItemAndSub = <li class ="ifsub active">|</li>
        before = ACTIFSUBACTIFSUB
      }
    }
    2 < .1
    3 < .2
}

The expected result is, the the prepended string changes depending on the item state. However, only NONONONONONO is ever generated.

Verified this on 6.2, 7.6 and master.

#1

Updated by Philipp Gampe over 4 years ago

  • Status changed from Accepted to Rejected
#2

Updated by Philipp Gampe over 4 years ago

copy needs to be done with ACT < .NO ... mind the dot

Also available in: Atom PDF