Answer the question
In order to leave comments, you need to log in
How to make filters for Collection in MODX admin?
The Collections component is used to display a list of resources in the admin panel (divided into categories).
It is necessary to add filtering by TV parameters of resources inside the collection, i.e. where in the collection Search by resources, the filter "Published / not ...", here you also need a filter for certain, pre-prepared TV.
How can I do this, is there any manual? Couldn't find anything on the Internet.
Answer the question
In order to leave comments, you need to log in
Thanks for the answer to Alexey Erokhin!
Add the necessary entries to /assets/components/collections/js/mgr/extra/collections.combo.js in the collections.combo.FilterStatus store.
Modify the /core/components/collections/processors/mgr/resource/getlist.class.php processor so that it can filter by TV in the prepareQueryBeforeCount function (include an invisible column with this TV in the collection settings, then it will be attached immediately to the request)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question