Created
November 6, 2018 00:35
-
-
Save ru2fac/be486831776b2911b353314543dbc5b9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[pdoResources? | |
&parents=`0` | |
&select=`{ | |
"modResource":"id, pagetitle", | |
"Children":"COUNT(Children.id) as count" | |
}` | |
&leftJoin=`{ | |
"Children":{"class":"modResource", "on":"modResource.id = Children.parent"} | |
}` | |
&sortby=`{"id":"ASC"}` | |
&where=`{"parent":0, "Children.id:IS NOT":null}` | |
&groupby=`modResource.id` | |
&limit=`0` | |
&tpl=`@INLINE <p>{$id}. {$pagetitle} - {$count} {$count | decl : "дочерний ресурс|дочерних ресурса|дочерних ресурсов"}</p>` | |
&showLog=`0` | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Взято тут: https://ilyaut.ru/cheats/how-do-i-output-only-the-containers-modx/