【发布时间】:2016-12-05 18:40:59
【问题描述】:
我尝试为当前页面创建第二个后备选项。 如果我的列为空,我当前的函数会获取父页面的内容。但如果我的后备也是空的,我也需要一个选项。 如果我的后备也应该为空,它应该会进入下一个级别 (leveluid:-3)。
有没有办法解决这个打字问题?
variables.element = CONTENT
variables.element {
table = tt_content
select {
pidInList.data = page:uid
orderBy = sorting
where = colPos=3
}
# Fallback
stdWrap.ifEmpty.cObject = CONTENT
stdWrap.ifEmpty.cObject {
table = tt_content
select {
pidInList.data = leveluid:-2
orderBy = sorting
where = colPos=3
}
}
# Fallback 2
stdWrap.ifEmpty.cObject = CONTENT
stdWrap.ifEmpty.cObject {
table = tt_content
select {
pidInList.data = leveluid:-3
orderBy = sorting
where = colPos=3
}
}
}
【问题讨论】:
标签: if-statement typo3 typoscript typo3-6.2.x