[TYPO3-english] typolink question: only filename (and not show path)
Jigal van Hemert
jigal at xs4all.nl
Thu Jun 18 12:43:47 CEST 2009
Henjo Hoeksma wrote:
> probably I overlook completely how to do this, but how can I have only
> the filename showing when using typoscript to link to a file?
>
> Default it outputs the whole path + the file name...
You could do something clever with split...
10 = TEXT
10 {
value = /a/b/c/de/fgh/ijk.txt
split {
token = /
cObjNum = 1 |*||*| 2
1.value >
2.current = 1
}
}
This displays "ijk.txt"
Regards,
--
Jigal van Hemert.
More information about the TYPO3-english
mailing list