Typo3 打字稿|如何像IF-ELSE条件那样书写?

Typo3 打字稿|如何像IF-ELSE条件那样书写?,typo3,typoscript,templavoila,Typo3,Typoscript,Templavoila,我是Typo3新手,正在用TemplaVoila建立一个网站。 我得到了以下TS(在TV XML中),它输出2组内容 10= RECORDS 10.source.current=1 10.tables = tt_content 10.wrap.required = 1 10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->]]> 20 = CONTENT 20.table = tt_content 2

我是Typo3新手,正在用TemplaVoila建立一个网站。 我得到了以下TS(在TV XML中),它输出2组内容

10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap.required = 1
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->]]>

20 = CONTENT
20.table = tt_content
20.select {
  pidInList = 36
}
10=记录
10.电源电流=1
10.表格=tt_内容
10.wrap.required=1
10.wrap=|]]>
20=内容
20.表=tt_含量
20.选择{
pidInList=36
}
第一组(10)是当前页面内容,第二组(20)从页面ID 36获取内容。 目前两者都已打印,但我只希望在10为空时打印20

我怎样才能做到这一点

10.stdWrap.ifEmpty.cObject = CONTENT
10.stdWrap.ifEmpty.cObject {
  table = tt_content
  select.pidInList = 36
}

没有测试,但应该可以工作。stdWrap在包装后执行。因此,在这种情况下,将不会设置搜索标记

帅哥:D很有魅力。