【发布时间】:2017-08-22 17:49:35
【问题描述】:
我有网址:somesite.com/mypage?clinic=21&spec=myspecialisation
在我的结构中,我有诊所 -> 父母 -> 要整理的最终资源
我有这个:
[[!getPage?
&elementClass=`modSnippet`
&element=`getResources`
&parents=`10,15,12`
&resources=`-7,-8`
&depth=`2`
&limit=`21`
&pageVarKey=`page`
&includeTVs=`1`
&includeContent=`1`
&tpl=`pageAllDoctors`
&hideContainers=`true`
&sortby=`FIELD(modResource.id, 456,331,390,491,2756,505,634,699,941,1044,1377,1436,1449,1678,1722,1711,1828,2007,2094,2184,2324,2487,2527)`
&where=`[{"introtext:LIKE":"%[[!searchFieldClinic? &field=`spec`]]%", "AND:template:=":104}]`]]
[[+total:is=``:then=` nothing found.<br/><br/><br/>`:else=``]]
它使用从 url &spec=myspecialisation 获取的 introtext 完美地整理页面
问题:getPage 语句中的&parents=10,15,12 列表应该是url 中clinic=21 参数中指定的页面的子页面列表
我该怎么做? 提前非常感谢。
【问题讨论】:
标签: modx-revolution modx-resources