[Typo3] TemplaVoila: FlexContent Element File-Download

Bernhard Kraft kraftb at kraftb.at
Tue Sep 13 20:48:15 CEST 2005


Gregor Kaczmarczyk wrote:
> i hope some of you has an idea how this additional values can be retrieved.
> thx in advance.
> 
> ciao, greg

If you have something like:

<div><a href="fileadmin/test.zip">Filename</a><span>(3.413.112 bytes)</span></div>

or similar you could simply map the DIV OUTTER as root element.

and then map the href= attribute to the file-link

the contents (INNER) of the a href will be mapped to the filename

and the contents of the span to the filesize (or would you like to generate the
filesize automaticall - which would be better - then you would need to map the filesize to
a TS Object Path and set apropriate TS code for generating the filesize.


Pherhaps you already tried that but got stuck when you tried to map the href attribute
of the a tag and its contents at the same time. This is not possible with the current TV 0.4.0
because of a bug.

You can find a fix for this here (in the bugtracker - you will need to create an account if
you not already have one)

http://bugs.typo3.org/view.php?id=1052


greets,
Bernhard



More information about the TYPO3-english mailing list