Actions
Task #51008
closedAdditional Register values in FilesContentObject
Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-08-11
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
FILE_NUM_CURRENT starts with 0. A TypoScript snippet like this would be required to render the last file special:
30 = TEXT 30.value = Yay, last file! 30.if.equals.data = register:FILE_NUM_CURRENT 30.if.value.data = register:FILES_COUNT 30.if.value.stdWrap.wrap = |-1 30.if.value.prioriCalc = 1
In this case it would be wonderful to have an additional register value "FILE_IS_LAST":
30 = TEXT 30.value = Yay, last file! 30.if.isTrue.data = register:FILE_IS_LASTAnd there are 4 additional useful register values:
- FILE_IS_FIRST: Solves the question if number "1" or "0" is the first one
- FILE_IS_ODD
- FILE_IS_EVEN
- FILE_CYCLE: Current number starting with 1
Actions