Project

General

Profile

Actions

Bug #21896

closed

isLessThan and isGreaterThan dosent work together in if (ts setup)

Added by Andriy Kmit' almost 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-12-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

tt_content.menu.20.1 >
tt_content.menu.20.1 = COA
tt_content.menu.20.1 {

10 = HMENU
10.special = directory
10.special.value.field = pages
10.1 = TMENU
10.1 {
wrap = <div class="column"><ul>|</ul></div>
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10.field = title
if.value.data = register:count_HMENU_MENUOBJ
if.negate = 1
if.isLessThan.prioriCalc=1
if.isLessThan.cObject=TEXT
if.isLessThan.cObject.insertData=1
if.isLessThan.cObject.value = ({register:count_menuItems}+1)/4
wrap = <li>|</li>
}
}
}
20 < .10
20.1.NO.stdWrap.cObject.if {
isLessThan.cObject.value = (({register:count_menuItems}+1)/4)*2
isGreaterThan < .isLessThan
isGreaterThan.cObject.value = ({register:count_menuItems}+1)/4
}
30 < .20
30.1.NO.stdWrap.cObject.if {
isLessThan.cObject.value = (({register:count_menuItems}+1)/4)*3
isGreaterThan.cObject.value = (({register:count_menuItems}+1)/4)*2
}
40 < .20
40.1.NO.stdWrap.cObject.if {
isLessThan >
isGreaterThan.cObject.value = (({register:count_menuItems}+1)/4)*3
}
}

10 and 40 TMENUs renders properly, but 20 and 30 seems like if conditions doesent work

(issue imported from #M13122)

Actions

Also available in: Atom PDF