Indis
Joined: 25 May 2007 Posts: 1
|
Posted: 25 May 2007 - 10:51 am Post subject:
Typoscript renderObj not completing
|
|
|
I have the following code which selects data from the table tt_content and outputs it to the homepage. However only the header is being output, the other fields image and bodytext are not.
| Line: |
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
| |
temp.essenSpecial{
# The table from which is beeing read ( the only one allowed are "pages" or tables with the prefix "tt_","tx_","ttx_","fe_" or "user_")
table = tt_content
# the SQL-Query
select{
#data = TSFE:fe_user|sesData|region
# limit 1 entry
max = 1
# The where clause
where.wrap = pid = 272
# The and clause
andWhere = header = Mittagsessenspecial
# The order by clause
orderBy = tstamp
}
renderObj = COA
renderObj{
10 = TEXT
10{
field = header
wrap = <h2>|</h2>
}
20 = IMAGE
20{
required = 1
wrap=<table><tbody><tr><td>|</td>
file.import=uploads/pics/
file.import.field = image
}
30 = HTML
30{
field = bodytext
wrap = <td>|</td></tr></tbody></table>
}
}
}
lib.essenSpecial < temp.essenSpecial.renderObj
|
|
Show complete code
|
I can't work out where I am going wrong.
Any help would be appreciated.
Regards |
|