[TYPO3-templavoila] Links without showing the complete path

Chris Bernhard chris at dreamride.de
Tue Jan 26 15:41:59 CET 2010


Hi Steffen,

thanks a lot for your answer,
but i dont come around with the Split TS:

Played around a long time with this with no result:

                	  10 = TEXT
                   10.value = field_downloads
                   10.split {
                     token = /
                     cObjNum = 1
                     returnKey = 3
                     1.current = 1
                     1.wrap |
                     1.typolink {
                       parameter.field = field_downloads
                       }
                   }

Whats going wrong here with this?

Thanks and best regards,

Chris

Am 26.01.2010 11:17, schrieb Steffen Kamper:
> Hi,
>
> Chris Bernhard schrieb:
>> Hi @ all,
>>
>> currently i have a content element mapped
>> as an link and i want to allow the editor
>> to place pdf downloads within an FCE.
>>
>> Everything works fine, but i dont want to
>> show the complete path in the download description, but
>> only the file name.
>>
>> Also:
>>
>> <a
>> href="fileadmin/user_upload/documents/pdf/t3n_06-01_directmail.pdf">t3n_06-01_directmail.pdf</a>
>>
>>
>> and not this:
>>
>> <a
>> href="fileadmin/user_upload/documents/pdf/t3n_06-01_directmail.pdf">fileadmin/user_upload/documents/pdf/t3n_06-01_directmail.pdf</a>
>>
>>
>> This is the TS within the DS:
>>
>> 10 = TEXT
>> 10.typolink.parameter.current = 1
>>
>> Is there any way to realise this?
>>
>
> you could use the split function if the number of "/" always are the
> same. Also you could provide a label field the editor fills out.
>
> vg Steffen


More information about the TYPO3-project-templavoila mailing list