-1
我尝试为当前页面创建第二个后备选项。 我的当前函数获取父页面的内容,如果我的列是空的。但是如果我的回退也是空的,我还需要一个选项。 它应该进入下一级(leveluid:-3),如果我的回退也应该是空的。第二个if空条件
有没有解决方案来处理与typoscript这个问题?
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
}
}
}