我的 TypoScript 中有以下代码:
MAINCONTENT = COA
MAINCONTENT.10 = CONTENT
MAINCONTENT.10{
table=tt_content
#select.where = uid=5
select.pidInList = 33
renderObj = COA
renderObj {
10=TEXT
10.value = <div class="news">
20=IMAGE
20{
required=1
file.import=fileadmin/images/
file.import.field=image
file.width=170
file.height=100
}
20.wrap = <div class="news_image">|</div><div class="news_content">
30=TEXT
30.field=crdate
30.date = d.m.Y
30.wrap=<div class="news_content"><div class="news_datum"> | </div>
40=TEXT
40.value=<div class="news_rubrik"><strong>Rubrik:</strong> testrubrik</div>
#stdWrap.outerWrap = <div id="article">|</div>
50=TEXT
50.field = header
50.wrap=<div class="news_headline"><a> | </a></div>
60=TEXT
60.field=bodytext
60.wrap=<div id="content_text"> | </div></div><div class="cf"></div></div><div class="newstrenner"></div-->
70=TEXT
70.value = </div>
}
}
我的问题是关于 20 - IMAGE 对象。
如何从 tt_content 获取由编辑器上传的图像?
tt_content 可能是错误的表吗?