[Typo3] build filepath from uid - how?

Martin Bless m.bless at gmx.de
Wed Sep 28 14:29:02 CEST 2005


On Wed, 28 Sep 2005 10:34:44 +0200, "JoH" <info at cybercraft.de> wrote:

>Since "file" itself has no stdWrap properties available you have to use
>"import" in this case:
>
>page.110 = IMAGE
>page.110 {
>   file {
>       import = fileadmin/pics/
>       import.dataWrap = id{page:uid}.gif
>}

Wow, thank you. That really helped. I didn't knew it was 'dataWrap' I
was searching for ;-)

>But I would prefer to do it independently from the uid by using the page
>type "adavanced" and uploading the image to the page.
>Then you can use "levelmedia" and slide.
>
>page.110 = IMAGE
>page.110 {
>   file {
>       import = uploads/media/
>       import.data = levelmedia:-1, slide
>       import.listNum = 0
>}

Good advice, I'll examine this. But in my special case, and, needless
to mention, in a sitiuation of time pressure the above does exactly
what's needed. An it provides smooth and effortless cooperation with
my colleague who prepared about 100 pictures allready ...

Have a nice day

Martin



More information about the TYPO3-english mailing list