我现在卡在我的代码中:/
我想从我的数据库中获取图像名称并格式化它们。
这是我的 TS 代码:
temp.slider = COA
temp.slider{
#slider
200 = TEXT
200.value = <div class="slider">
300 = COA
300.table = tt_content
300.select {
orderBy = sorting
where = (colPos = 3 AND CType = "image")
languageField = sys_language_uid
renderObj = TEXT
renderObj {
field = image
split {
token = ,
cObjNum = 1
1.cObject = IMG_RESOURCE
1.cObject {
file {
import = fileadmin/images/
import.current = 1
}
stdWrap.wrap = <img width="615" height="230" alt="" src="fileadmin/images/|" >
stdWrap.insertData = 1
}
}
}
}
我需要的输出是:
<img width="615" height="230" alt="" src="fileadmin/images/image1.jpg">
<img width="615" height="230" alt="" src="fileadmin/images/image2.jpg">
<img width="615" height="230" alt="" src="fileadmin/images/image3.jpg">