[TYPO3] fileLink?
Tyler Kraft
headhunterxiii at yahoo.ca
Mon Jun 12 10:16:39 CEST 2006
*sigh*
Thanks so much Peter - you've been immensely helpful!
Its great to know that what i was doing was actually correct all along,
and that i did fully understand what TSref was saying... the problem
existed more as a miscommunication between a colleague and myself... I
was using/given the wrong path therefore it wouldn't make the link
because as far as typo3 was concerned the file didn't actually exist!
Cheers,
Tyler
Peter Klein wrote:
> Hi Tyler. I misread what you wanted to do, I was thinking of the "filelist"
> property, not the "filelink" sorry.
> But here's an example on how to use "filelink" (More or less the same as in
> TSRef)
>
> lib.filelink = COA
> lib.filelink {
> wrap = <table>|<table>
> 10 = TEXT
> # This Is the NAME of the file you want to display using the "filelink"
> property.
> 10.value = myfile.jpg
> 10.filelink {
> # This Is the PATH to the file you want to display
> path = fileadmin/templates/images/
> icon = 1
> icon.wrap = <td> | </td>
> size = 1
> size.wrap = <td> | </td>
> file.wrap = <td> | </td>
> jumpurl = 1
> target = _blank
> stdWrap = <tr> | </tr>
> }
> }
> page.123 < lib.filelink
>
> ---
> Peter Klein / Umloud Untd.
>
> "Tyler Kraft" <headhunterxiii at yahoo.ca> wrote in message
> news:mailman.1.1150031145.27189.typo3-english at lists.netfielders.de...
>> thanks but then i don't understand the point of it... or why in TSref it
>> mentions size=1 for filelink?
>>
>> Peter Klein wrote:
>>> Hi Tyler. The "filelink" object only accept a path parameter, not a
>>> filename, so you won't be able to use that to get the filesize.
>>>
>>> I guess you'll have to write a small PHP userfunc to return you the size
>>> of the file.
>>>
>
>
More information about the TYPO3-english
mailing list