列出具有至少一个常见标签的MODX文章
是否可以使用getResources片段查找至少具有一个有效资源的常见标签的相关文章?
[[getResources?
&parents=`xxx, xxx`
&showHidden=`1`
&limit=`10`
&tpl=`relatedArticle-tpl`
&depth=`1`
&includeContent=`1`
&includeTVs=`1`
&processTVs=`1`
&sortby=`publishedon`
&tvFilters=`something here`
]]
活动资源的电视[[*articletags]]至少应包含一个具有匹配资源的常见标签。
Is it possible to use the getResources snippet to find related articles that have at least one common tag with the active resource?
[[getResources?
&parents=`xxx, xxx`
&showHidden=`1`
&limit=`10`
&tpl=`relatedArticle-tpl`
&depth=`1`
&includeContent=`1`
&includeTVs=`1`
&processTVs=`1`
&sortby=`publishedon`
&tvFilters=`something here`
]]
The TV [[*articletags]] of the active resource should contain at least one common tag with a matching resource.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是我实施问题的方式:
制作电视过滤器的片段:
不确定这是否是实现目标的最简单方法。如果有更好的解决方案,请随时发表评论。
This is the way how I implemented question:
And the snippet to make a TV filter:
Not sure if this is the simplest way to achieve my target. Feel free to comment if there is a better solution.