[TYPO3-english] FILES cObject, get total number of its retrieved files

Stefan Reichelt eichelt at web.de
Tue Aug 6 19:22:13 CEST 2013


Hello there,

in TypoScript I have a simple FILES object and is there some, any way to
get the total number of files it retrieved (/is rendering)?

I found one possible (haven't tried it yet) way (but it would probably
only help my particular usecase though) by using stdWraps split function
with optionSplit, detailed here [1] (in german only, sorry), but I
really hope there is a better way to it.


Additionally, is there a better way to count each file or know the
current files number?
I only know of using LOAD_REGISTER and in it prioriCalc to do the
counting manually, but thats equally unpretty as the split thing above
imho. There is also {cObj:parentRecordNumber} which would fill the need,
but sadly that only works in RECORDS/CONTENT objects...


Thanks in advance and
kind regards
Stefan

[1]
http://labor.99grad.de/2012/06/15/records-mit-eigenem-wrap-fur-jeden-record-eigene-klasse-fur-jedes-inhaltselement-record-count/


More information about the TYPO3-english mailing list