如果条件“如果集合包含与[[* id]]等于的电视的资源”

问题描述 投票:0回答:1

我需要Modx中的以下条件“如果集合(资源#10)包含与等于[[* id]]的电视的资源,那么......

我尝试了几种选择,但它们似乎不起作用。

modx
1个回答
0
投票
[[!pdoResources?
&parents=`10`
&depth=`1`
&tpl=`nomatter`
&limit=`1`
&includeTVs=`TV_NAME`
&where=`[ "TV":[[*id]] ]`
]]

[[+total:gt=`0`:then=`....`]]

https://docs.modx.pro/komponentyi/pdotools/snippetyi/pdoresources

© www.soinside.com 2019 - 2024. All rights reserved.