[TYPO3-templavoila] FCE File-Download

Jens Schmietendorf jenses at smedja.com
Thu May 24 23:24:33 CEST 2007


Hi list!

I have a FCE that shows a small list with files for downloading.
I need the filesize for the selected file as additional info in FE.
The mapping is not the problem,
but i don´t found a way to automatically generate the filesize info.
At the moment I use a pure text input field for the filesize, but that´s 
not good.

So I need a USER object,
but how can I transform the current filename into that USER object?

The only possible way I can see ist to use 
register:tx_templavoila_pi1.parentRec.uid
to get the tt_content - uid into the USER object,
parse the tx_templavoila_flex - field and get my filename and 
filesize($absPath_to_filename) to return it.

Is there an other simple solution for the problem?

greetings from Sweden
jenses


More information about the TYPO3-project-templavoila mailing list