[Typo3-UG Oesterreich] image positionierung

Franz Kratochvil typo3 at kratochvil.com
Fri Jul 30 15:04:45 CEST 2004


kop at gmx.at wrote:

> Ich  nehme als page header type advanced und
> da kann man ja Files uploaden und es gibt ein Description feld!!!

Pfau!

> jetzt brauch ich nur mehr im TS-Setup auf diese zwei
> felder zugreifen!!!

Supa!

> ich weiss nur nicht wie?? aber das muß doch gehn??

Du brauchst das feld "media". Hier ein Beispiel, wie auf dieses Feld 
zugegriffen wird, und zwar rekursiv auf mehrere Ebenen. So ähnlich hat 
mir das mal der Georg Kuehnberger (salute!) verklickert (und es 
funktioniert!):

(ich hab das Feld für ein Header-Bild gebraucht...)
--------------------------
###HEADER-IMAGE###
temp.prev1 = RECORDS
temp.prev1 {
   dontCheckPid = 1
   tables = pages
   source.data = leveluid:-1
   conf.pages = TEXT
   conf.pages.field = media
}

temp.previous = COA
temp.previous {
   10 = COA
   10 {
     10 = COA
     10 {
       10 < temp.prev1
       stdWrap.ifEmpty.cObject = COA
       stdWrap.ifEmpty.cObject {
         10 < temp.prev1
         10.source.
-- 
... TYPO3 has many options mostly because I felt incapable of deciding 
which one should be the only possibility... so I just made it 
configurable. - Kasperdata = leveluid:-2
       }
     }
     stdWrap.ifEmpty.cObject = COA
     stdWrap.ifEmpty.cObject {
       10 < temp.prev1
       10.source.data = leveluid:-3
     }
   }
   stdWrap.ifEmpty.cObject = COA
   stdWrap.ifEmpty.cObject {
     10 < temp.prev1
     10.source.data = leveluid:-4
   }
}

temp.header = IMAGE
temp.header.file {
import.field = media
import.ifEmpty.cObject < temp.previous
import = uploads/media/
import.listNum = 0
}
temp.header.alttext = blabla
temp.header.linkWrap = irgendwas
------------------------
Das sollte dir zumindest mal helfen, das Bild zu laden. Mit der 
description musst dich spielen....

Leute, heute hats wunderbares Wetter, raus in die Gastgärten und Bäder! 
Ein schönes Wochenende wünscht euch der

Franz

-- 
... TYPO3 has many options mostly because I felt incapable of deciding 
which one should be the only possibility... so I just made it 
configurable. - Kasper



More information about the TYPO3-at mailing list