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

Wouter Wolters typo3 at wouterwolters.nl
Tue Aug 6 21:34:44 CEST 2013


Hi Stefan,

Are you maybe looking for this pending feature [1]?

Wouter

[1] https://review.typo3.org/#/c/21747/

Op 6-8-2013 19:22, Stefan Reichelt schreef:
> 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