【发布时间】:2017-11-08 16:30:39
【问题描述】:
在我的数据库中是 TYPO3 媒体图像文件: header_image = 1
表:tx_test
字段:header_image
如何输出图片链接? 我想我需要 IMG_RESOURCE 和 RECORDS 吗?
但我现在不工作了。我的测试:
10 = FILES
10 {
references {
table = tx_test
#uid.data = uid
fieldName = header_image
}
renderObj = RECORDS
renderObj {
10 = IMG_RESOURCE
10 {
file {
treatIdAsReference = 1
import.data = file:current:publicUrl
}
}
}
}
完美运行!
#Title
testTitle = COA
testTitle {
# Titel
10 = RECORDS
10 {
source = 1
dontCheckPid = 1
tables = tx_test
conf {
tx_test = TEXT
tx_test {
field = title
crop = 80 | | 1
stripHtml = 1
htmlSpecialChars = 1
}
}
}
stdWrap.noTrimWrap = |<title>|</title>|
stdWrap.insertData = 1
}
谢谢!
【问题讨论】:
-
你的目标 HTML 输出是什么?
-
我使用其他代码作为标题和说明,这很好。但现在我需要 og:image 元标记:
标签: database typo3 typoscript typo3-8.7.x