E
E
Eugene2018-03-21 09:06:50
MODX
Eugene, 2018-03-21 09:06:50

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

2 answer(s)
E
Eugene, 2018-03-21
@Zoten

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)

F
Froggyweb, 2018-03-21
@Froggyweb

Look at this www.bxr.cz/blog/collections-enhanced-sort

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question