The site has categories in each category - products. In the product card you need to display a list of other products from the same category.

Tell me, is it possible to remove products from the same category without tvFilters, specifying something in pdoResources & parents = "?". Or in some other way?

I am now using the following call:

[[!pdoResources? &parents=`[[*id]]` &limit=`5` &tpl=`Tpl` &sortby=`RAND()` ]] 

    1 answer 1

    The parent construct ( [[*parent]] ) returns the id parent resource.

    Accordingly, in your cases the record will be as follows:

     [[!pdoResources? &parents=`[[*parent]]` &limit=`5` &tpl=`Tpl` &sortby=`RAND()` ]] 
    • Thank you This is what you need. - ov seo