【发布时间】:2018-05-16 06:45:36
【问题描述】:
我需要从 TYPO3 获取处理后图像的 URL。图像放置在自定义内容元素中并由用户修改(例如裁剪)。
我能够获取原始文件 URL,但我需要处理后的图像 URL(来自 file_processedImages 表)。
这是我的 TS:
# <------------ Speakers --------
tt_content.speakers = FLUIDTEMPLATE
tt_content.speakers {
file = EXT:cce/Resources/Speakers.html
variables {
images = FILES
images {
references {
table = tt_content
fieldName = image
}
renderObj = COA
renderObj {
10 = TEXT
10 {
data = file:current:uid
treatIdAsReference = 1
wrap = |,
}
20 = TEXT
20 {
data = file:current:publicUrl
treatIdAsReference = 1
wrap = |###
}
30 = TEXT
30 {
data = file:current:title
wrap = |,
}
40 = TEXT
40 {
data = file:current:description
htmlSpecialChars = 1
}
}
}
}
}
我认为引用表总是作为 tt_content 上的子加载。
这意味着我应该能够从这样的引用图像中读取publicUrl
data = file:current:publicUrl
treatIdAsReference = 1
【问题讨论】:
标签: typo3 typoscript typo3-7.6.x