我的 TypoScript 代码中有一个数据库表“tt_content”检查。
根据内容是否为空,我想将变量 VAR 设置为“空”或“满”。
是否可以?
MIDCONTENT= CONTENT
MIDCONTENT{
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
}
我已经找到了一种将 MIDCONTENT 本身设置为空的方法,方法是
MIDCONTENT= CONTENT
MIDCONTENT{
table = tt_content
select.orderBy = sorting
select.where = colPos = 0
stdWrap.ifEmpty.cObject = TEXT
stdWrap.ifEmpty.cObject.value = empty
}
但我需要的是设置另一个变量,我也需要检查完整状态。