Einzelnen Beitrag anzeigen
  #2  
Alt 15.02.08, 14:13
Benutzerbild von just2b
just2b just2b ist offline
 
Registriert seit: 03.11.04
Alter: 25
Beiträge: 2.500

kein problem

Typoscript-Code:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
# Image from tt_news
temp.img = RECORDS
temp.img {  
# nur wenns eine ID gibt
if.isTrue.data = GPvar:tx_ttnews|tt_news      
source.data = GPvar:tx_ttnews|tt_news
tables = tt_news

conf.tt_news = COA
conf.tt_news {  
10 = IMAGE
10 {            
file {
import = uploads/pics/
import.field = image
                              # listNum 1 = das 2. Bild
import.listNum = 0
                              # Konfiguration des Bildes wie du magst
                              #maxW = 230
width = 800
height = 370                            
}
titleText.field = title
altText.field = title                      
}
}
}


# Image from the page properties
temp.imgPageProperties = IMAGE
temp.imgPageProperties{
file.import = uploads/media/
file.import.data = levelmedia:-1, slide
file.import.listNum=0
}

# Take the right one
lib.banner = COA
lib.banner {
10 = COA
10 {  
# wenn es ein Header Bild im News Datensatz gibt
if.isTrue.cObject < temp.img
30 < temp.img
}

20 = COA
20 {
# sonst suche das erste übergeordnete Headerbild
if.isFalse.cObject < temp.img
30 < temp.imgPageProperties
}
}

georg
__________________
TYPO3 3.7./3.8.X/4.0.X/4.1.1
just2b.com | Google Maps | SmoothGallery | Das grösste werbefreie TYPO3 Forum typo3.net | Content-Management-Systeme mit TYPO3 & RedDot
Mit Zitat antworten