TYPO3 6.0:从FAL中的边框列呈现当前页面的图像
我有以下代码片段,但我无法让它工作TYPO3 6.0:从FAL中的边框列呈现当前页面的图像,typo3,typoscript,Typo3,Typoscript,我有以下代码片段,但我无法让它工作 COL3 = FILES COL3 { references { table = tt_content uid = 14 fieldName = image } renderObj = TEXT renderObj { data = file:current:publicUrl
COL3 = FILES
COL3 {
references {
table = tt_content
uid = 14
fieldName = image
}
renderObj = TEXT
renderObj {
data = file:current:publicUrl
wrap = <img src="|">
}
}
感觉我几乎什么都试过了
我真的很感激我能得到的每一个帮助
非常感谢 我假定
select
属性不适用于引用
尝试此解决方案(未经测试)用于任何内容元素
...
references {
table = tt_content
uid.data = uid
fieldName = image
}
另一个想法是:
COL3 = CONTENT
COL3 {
table = tt_content
select {
where = colPos = 3
}
renderObj = FILES
renderObj {
references {
table = tt_content
fieldName = image
}
renderObj = TEXT
renderObj {
data = file:current:publicUrl
wrap = <img src="|">
}
}
}
COL3=内容
可乐{
表=tt_含量
挑选{
其中=colPos=3
}
renderObj=文件
伦德罗布{
参考资料{
表=tt_含量
字段名=图像
}
renderObj=文本
伦德罗布{
数据=文件:当前:publicUrl
包裹=
}
}
}
我觉得这样更好:
COL3 = CONTENT
COL3 {
table = tt_content
select {
where = colPos = 3
}
renderObj = FILES
renderObj {
references {
table = tt_content
fieldName = image
}
renderObj = IMAGE
renderObj {
file.import.data = file:current:publicUrl
}
}
}
你救了我一天!非常感谢。我已经弄干了第一个对我不起作用的,但第二个是现成的!谢谢,伙计。太好了-我没有测试,这让我更加自豪:)。这确实是更好的解决方案,因为它使用图像对象来制作图片。
COL3 = CONTENT
COL3 {
table = tt_content
select {
where = colPos = 3
}
renderObj = FILES
renderObj {
references {
table = tt_content
fieldName = image
}
renderObj = IMAGE
renderObj {
file.import.data = file:current:publicUrl
}
}
}