我在 TypoScript 中有这种情况:
[globalVar = TSFE:fe_user|sesData|get_car = TSFE:fe_user|sesData|return_car]
# Do nothing
[else]
plugin.Tx_Formhandler.settings.predef.formhandler-multistep-forms-rent-a-car {
markers.master_input_price_out_town1 = TEXT
markers.master_input_price_out_town1.value = Zwrot samochodu:
markers.master_input_price_out_town2 = CONTENT
markers.master_input_price_out_town2 {
table = tx_pricelist_additional_price
select {
pidInList = 44
orderBy = uid
selectFields = uid, return_another_department
# possible conditions
where = ( hidden='0' AND deleted='0')
}
renderObj = COA
renderObj {
#value
1 = TEXT
1.insertData = 1
1.data = field: return_another_department
1.stdWrap.prioriCalc = 1
1.wrap = <div>|</div>
}
}
}
[global]
因为在 TS 中没有像!=
我使用[else]
条件这样的想法,但是CODE
即使在get_car
和return_car
相同时也会执行。
我究竟做错了什么?