Filter Modx:getResources被电视过滤
我有一个电视“标签”,逗号分隔…通常的东西。现在,我只想显示特定电视的资源:Filter Modx:getResources被电视过滤,filter,modx,getresource,modx-revolution,Filter,Modx,Getresource,Modx Revolution,我有一个电视“标签”,逗号分隔…通常的东西。现在,我只想显示特定电视的资源: <ul class="resource-by-tag"> [[!getResources? &parents=`15` &tpl=`resourceByTagRow` &includeTVs=`1` &processTVs=`1` &tvFilter=`tags==rundfunk` &tvPrefix=``]] </ul> [[!getR
<ul class="resource-by-tag">
[[!getResources? &parents=`15` &tpl=`resourceByTagRow` &includeTVs=`1` &processTVs=`1` &tvFilter=`tags==rundfunk` &tvPrefix=``]]
</ul>
[[!getResources?&parents=`15`&tpl=`resourceByTagRow`&includeTVs=`1`&processTVs=`1`&tvFilter=`tags==rundfunk`&tvPrefix=`]]
你可能会猜到这不管用…但为什么?它显示所有资源,无论是什么
提前谢谢 我猜它可能与
&tvFilter='tags==rundfunk'
和类似于这样的标签有关ahfunk,beefunk,redfunk
标签将包括redfunk
,但不会==redfunk
您是否尝试过使用
where
?我只在=子句中看到它,但是你可能有更多的选择。我猜它可能与&tvFilter='tags==rundfunk'
和类似于这样的标签有关ahfunk、beefunk、redfunk
标签将包括redfunk
,但不会==redfunk
您是否尝试过使用where
?我只在=子句中看到它,但您可能有更多的选择。这只是一个输入错误:
[[!getResources? &parents=`15` &tpl=`resourceByTagRow` &includeTVs=`1` &processTVs=`1` &tvFilters=`tags==rundfunk` &tvPrefix=``]]
一切正常。它必须是tvFilters
而不是tvFilter
它只是一个打字错误:
[[!getResources? &parents=`15` &tpl=`resourceByTagRow` &includeTVs=`1` &processTVs=`1` &tvFilters=`tags==rundfunk` &tvPrefix=``]]
一切正常。它必须是tvFilters
,而不是tvFilter