Project

General

Profile

Actions

Bug #76455

closed

TypoScript TMEMUITEM before and after only work for NO

Added by Philipp Gampe almost 8 years ago. Updated almost 8 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.

Actions

Also available in: Atom PDF