[FEATURE] Adds register values to FilesContentObj 47/21747/3
authorLars Peipmann <lars@peipmann.de>
Sun, 30 Jun 2013 14:23:27 +0000 (16:23 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Tue, 6 Aug 2013 21:46:59 +0000 (23:46 +0200)
commit3eda92a4bf158d90853624cb3057a5bb1c7cac53
treecc9bf2e34337d9739bf7f469b40a9e98470e1331
parent8f74ed9c9379f887fad1c56480b3250cf6b89b72
[FEATURE] Adds register values to FilesContentObj

Adds FILE_NUM_CURRENT and FILES_COUNT to the register
for each file.

Use case:
10 = FILES
10 {
references {
table = tt_news
uid.field = uid
fieldName = media
}
renderObj = COA
renderObj {
10 = TEXT
10.value = Render first file two times
10.if.isFalse.data = register:FILE_NUM_CURRENT
20 = TEXT
20.value = file {register:FILE_NUM_CURRENT} of {register:FILES_COUNT}
20.insertData = 1
}
}

Resolves: #49480
Releases: 6.2
Change-Id: I3eca404210ee21f73cea0860fa0be7cc39b4632f
Reviewed-on: https://review.typo3.org/21747
Reviewed-by: Lars Peipmann
Tested-by: Lars Peipmann
Tested-by: Wouter Wolters
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php