我有 3 个字段:名称、价格、TV tablepriceitem 中的链接
我需要检查链接字段的完整性并根据此显示不同的模板。我喜欢这样:
[[getImageList?
&docid=`[[*id]]`
&tvname=`tablepriceitem`
&tpl=`[[+linkitem:is=`0`:then=`link.tpl`:else=`link2.tpl`]]`
]]
但是我的支票不起作用。为什么?我将不胜感激。
我有 3 个字段:名称、价格、TV tablepriceitem 中的链接
我需要检查链接字段的完整性并根据此显示不同的模板。我喜欢这样:
[[getImageList?
&docid=`[[*id]]`
&tvname=`tablepriceitem`
&tpl=`[[+linkitem:is=`0`:then=`link.tpl`:else=`link2.tpl`]]`
]]
但是我的支票不起作用。为什么?我将不胜感激。
您指的
linkitem是placeholder,tv-параметр在这种情况下不是。条目应该是这样的: