[TYPO3] Duplicated images with SELECT query and GIFBUILDER
Sébastien Ioannitis-McColl
Ioannitis at intracen.org
Wed Apr 19 12:30:02 CEST 2006
Hello
I am trying to build an image based on two content elements (TEXT) in the same page. What I want to achieve is to have an GIFBUILDER image with :
- Logo of my organisation
- over the logo, I want the HEADER (text) of my first content element
- over the logo and below this HEADER, I also want the HEADER of the SECOND content element
The code below generates two images with. In the first image, the first and second lines of text are the header of the first content elements, and in the second image, these are the header of the second content element. I kind of understand what it does, since the SELECT query returns two rows, but really don't know how to make this right.
Thank you for your help.
Seb
lib.header_image = CONTENT
lib.header_image {
table = tt_content
select {
// Page where I have my two content elements [sequence of elements is important]
pidInList = 76
where = (tt_content.colPos=0)
orderBy = sorting
languageField = sys_language_uid
renderObj = IMAGE
renderObj.file = GIFBUILDER
renderObj.file {
XY = 350,64
backColor = #01009A
// Organisation Logo
5 = IMAGE
5.file = fileadmin/images/gradient.jpg
// HEADER text of first content element
10 = TEXT
10.text.field = header
10.text.wrap = |
10.fontSize = 18
10.fontColor = white
10.fontFile = fileadmin/fonts/ARIALN.TTF
10.align = left
10.offset = 50,30
10.niceText = 1
10.maxWidth = 350
// HEADER text of second content element
30 < .10
30 = TEXT
30.text.field = header
30.text.wrap = |
30.fontSize = 12
30.offset = 50,40
}
}
More information about the TYPO3-english
mailing list