How to use the call correctly [[!tmCatalog]] & pdoResources

Hi. The filter does not work. Tell me how the call should look right. Thanks

[[$head]]

<body>
    <!-- Preloader Start Here -->
    [[$prescroll]]
    <!-- scrollUp End Here -->
    <div id="wrapper" class="wrapper">
        <!-- Header Area Start Here -->
   [[$header]]
        <!-- Header Area End Here -->
        <!-- Inne Page Banner Area Start Here -->
          [[$breadcrumbs]]
        <!-- Inne Page Banner Area End Here -->
        <!-- All Doctors Start Here -->
        <section class="team-wrap-layout2 bg-light-accent100">
            <div class="container">
                <div class="isotope-wrap">
                    <div class="text-center">
                        <div class="isotope-classes-tab isotop-btn">
<div id="filters">
    <form action="[[~[[*id]]]]" method="get">
        
        <input type="hidden" name="sortby" value="pagetitle" />
        <input type="hidden" name="sortdir" value="asc" />
        <input type="hidden" name="limit" value="10" />
        
        [[tmFilters?
        &filterOuterTpl=`tm2_filterOuterTpl_select`
        &filterTpl=`tm2_filterTpl_select`
        &filterNumericOuterTpl=`tm2_filterOuterTpl`
        &filterNumericTpl=`tm2_filterNumericTpl`
	&filtersType=`filters_simple`
        ]]
        
        <button type="submit">Подобрать</button>
        <button type="button" onclick="window.location.href = window.location.pathname; return false;">Сбросить</button>
    </form>
</div>
                           
                        </div>
                    </div>
                    <div id="products" class="row featuredContainer" >
  [[!pdoResources?
    &parents=`2`
    &tpl=`doctorpage`
    &includeTVs=`img,specializacia,doljnost`
	&limit=`30`
	&sortby=`{"menuindex":"ASC"}`
	  [[!tmCatalog]]
]]        

                       
                       
                    </div>
                </div>
            </div>
        </section>
        <!-- All Doctors End Here -->
         <!-- Footer Area Start Here -->
      [[$footer]]
        <!-- Footer Area End Here -->
    </div>
    <!-- jquery-->
   [[$js]]

</body>

</html>

pdoResources is either trying to process that tag or ignoring it.

If you want show the tmCatalog output below the pdoResources output, just move the tmCatalog tag below the pdoResources tag.

If not, is tmCatalog a snippet of your own? It doesn’t appear to be a MODX extra.

I think its tagManager2

This tag can’t be inside the pdoResources tag unless it’s a property value and enclosed by backticks, like this:

&someProperty=`[[!tmCatalog]]'

You can’t ever put anything inside a snippet tag except a list of properties for the snippet.

Try moving that tmCatalog tag below the closing ]] of the pdoResources tag.

Hi. Thanks for the reply. I’ve done this before. But I don’t remember exactly how, and where I did it, modx3 is already standing
2022-08-05-030319

Can you tell me, I started working, but how to make sure that when selecting a parameter, the selected option remains and not the output of two snippets pdoResources \ tagManager2

[[$head]]

<body>
    <!-- Preloader Start Here -->
    [[$prescroll]]
    <!-- scrollUp End Here -->
    <div id="wrapper" class="wrapper">
        <!-- Header Area Start Here -->
   [[$header]]
        <!-- Header Area End Here -->
        <!-- Inne Page Banner Area Start Here -->
          [[$breadcrumbs]]
        <!-- Inne Page Banner Area End Here -->
        <!-- All Doctors Start Here -->
        <section class="team-wrap-layout2 bg-light-accent100">
            <div class="container">
                <div class="isotope-wrap">
                    <div class="text-center">
                        <div class="isotope-classes-tab isotop-btn">
<div id="filters">
    <form action="[[~[[*id]]]]" method="get">
        
        <input type="hidden" name="sortby" value="pagetitle" />
        <input type="hidden" name="sortdir" value="asc" />
        <input type="hidden" name="limit" value="10" />
        
        [[tmFilters?
        &filterOuterTpl=`tm2_filterOuterTpl_select`
        &filterTpl=`tm2_filterTpl_select`
        &filterNumericOuterTpl=`tm2_filterOuterTpl`
        &filterNumericTpl=`tm2_filterNumericTpl`
	&filtersType=`filters_simple`
        ]]
        
        <button type="submit">Подобрать</button>
        <button type="button" onclick="window.location.href = window.location.pathname; return false;">Сбросить</button>
    </form>
</div>
                           
                        </div>
                    </div>
                     
                    <div class="row featuredContainer" >
                        <ul class="pages" id="pages">
    [[!+page.nav]]
</ul>
                       
  [[!pdoResources?
    &parents=`2`
    &tpl=`doctorpage`
    &includeTVs=`img,specializacia,doljnost`
	&limit=`30`
	&sortby=`{"menuindex":"ASC"}`
]]  
[[!tmCatalog]]
   
                    </div>
                </div>
            </div>
        </section>
        <!-- All Doctors End Here -->
         <!-- Footer Area Start Here -->
      [[$footer]]
        <!-- Footer Area End Here -->
    </div>
    <!-- jquery-->
   [[$js]]

</body>

</html>

I’m sorry, I don’t understand your question.

Hello. Figured it out. Tell me how to set the sorting Direction. The options don’t work
&sortdir=ASC
&sortby={"menuindex":"ASC"}

[[!tmCatalog? 
&includeTVList=`img,specializacia,doljnost`
&sortdir=`ASC`
]]

You probably have to define both properties &sortdir=`ASC` and &sortby=`menuindex`.
Or alternatively use &orderby=`{"menuindex":"ASC"}`

Good afternoon. Thanks! Everything works!

Although not everything works) For some reason, according to the “specializacia” parameter - “no results”. For all tv resources, the field is filled in

[[!tmCatalog? 
&includeTVList=`img,specializacia,doljnost`
&includeTVs=`1`
&orderby=`{"menuindex":"ASC"}`
]]

I have now updated the filters for the page in tagmanager. the list has disappeared altogether