How to configure a filter getPage in modx?

1. The transfer of resources through getPage here
2. Code snippet: filter + getPage:
$out = array();
$category = isset($_GET['category']) ? strip_tags($_GET['category']) : ";
$categories = explode('|', $category);
if ($category != ") {
foreach ($categories as $categ) {
$out[] = 'category==%*' . $categ . '*%';
return implode(',' $out);</code-->
br><br><pre><code class="php">[[!getPage? &elementClass=`modSnippet` &element=`getResources` &limit=`20` &parents=`28` &hideContainers=`1` &tpl=`tplList` &includeTVs=`1` &tvFilters=`[[!filter]]` ]]</code></pre><br> 3. The result getPage ajax'Ohm load on <a href="" rel="nofollow">this page</a> accordingly it is possible to view the names of categories in the data-value-list-li and look catalog.js in source.
July 9th 19 at 11:22
1 answer
July 9th 19 at 11:24
Understood. With the names of tv settings messed up.

Find more questions by tags MODX