Project

General

Profile

Actions

Task #51008

closed

Additional Register values in FilesContentObject

Added by Lars Malach almost 11 years ago. Updated over 9 years ago.

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_LAST

And 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

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #49480: Register values in FilesContentObjectClosed2013-06-27

Actions
Actions

Also available in: Atom PDF