[TYPO3] select and diffrent image size
Bartosz Aninowski
bart at REM-IT-sonik.pl
Sun Jan 20 17:36:12 CET 2008
Hi
I want to select 10 records from tt_news table and set diffrent imgae size
for first, second, third etc records
I want first rows to have image size 262x194, next three recors have size
112x82 and rest have no image at all :)
Here is what I've tried
#Create the CONTENT object
temp.contentToSplit=CONTENT
temp.contentToSplit{
table=tt_news
select {
pidInList = 12
max = 9
orderBy = datetime DESC
}
renderObj=COA
renderObj{
10=TEXT
10.field=title
10.wrap=|<br>
20=TEXT
20.field=subheader
20.wrap=|<br>
30=IMAGE
30{
required=1
wrap= |
file.import=uploads/tx_ttnews/
file.import.field=image
file.import.listNum = 0
file.width = 262c || 112c || 112c || 112c
file.height = 195c || 82c || 82c || 82c
}
}
}
but it doesn't work
Any hint?
More information about the TYPO3-english
mailing list