URL を取得しました: 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 から取得したイントロテキストを含むページを完全に整理します
問題: &parents=
getPage ステートメントの 10,15,12 リストは、clinic=21
url のパラメーターで指定されたページの子であるページのリストである必要があります。
どうやってやるの?よろしくお願いします。