[Typo3-UG Oesterreich] Mininews mit GIFBUILDER nur ein Thread
Wolfgang Klinger
wolfgang at stufenlos.net
Wed Jul 28 15:01:23 CEST 2004
Hallo!
Andreas Hofer schrieb folgendes am 28.07.2004:
> Hier mal der Code.:
> hofbauer.10 {
> marks.TEXTBILD = IMAGE
> marks.TEXTBILD.file = GIFBUILDER
> marks.TEXTBILD.file {
> XY = 150,50
> offset=0,0
> backColor = #333333
> 10 = TEXT
> 10.fontFile = fileadmin/template/timesi.ttf
>
> 10.text.data = DB:tx_mininews_news:1:title
> 10.fontColor = #c12733
> 10.fontSize = 15
> 10.offset = 5,13
> 10.align = left
> 10.antiAlias = 1
> #
> 20 = TEXT
> 20.fontFile = fileadmin/template/timesi.ttf
> 20.text.data = DB:tx_mininews_news:1:teaser
> 20.fontColor = #ffffff
> 20.fontSize = 12
> 20.offset = 5,30
> 20.align = left
> 20.antiAlias = 1
> }
> }
Du gehst falsch an das Problem heran...
Folgende Überlegungen:
1. Mehrere Datensätze
2. d.h. du brauchst eine Art "Schleife"
3. und aus jedem Datensatz willst du ein Bild erstellen
So auf die Art sollte es funktionieren
(nicht getestet):
----
hofbauer.10 {
marks.TEXTBILD = CONTENT
marks.TEXTBILD {
table = tx_mininews_news
renderObj = IMAGE
renderObj {
file = GIFBUILDER
file {
XY = 150,50
offset=0,0
backColor = #333333
10 = TEXT
10 {
fontFile = fileadmin/template/timesi.ttf
text.field = title
fontColor = #c12733
fontSize = 15
offset = 5,13
align = left
antiAlias = 1
}
20 = TEXT
20 {
fontFile = fileadmin/template/timesi.ttf
text.field = teaser
fontColor = #ffffff
fontSize = 12
offset = 5,30
align = left
antiAlias = 1
}
}
}
}
}
----
Du kannst auch bei Bedarf noch z.B. mit "select" die
Datensätze eingrenzen...
Wolfgang
More information about the TYPO3-at
mailing list