October CMS resources and help articles

Simple and to the point. Optimized by the community.

Add a category filter to a backend list

5
by OFFLINE, last modified on August 12th, 2019

In your plugin directory create the following file:

controllers/yourcontroller/config_filter.yaml

Paste your filter configuration in it:

scopes:
    category:
        label: Category
        modelClass: Acme\Blog\Models\Category
        conditions: category_id in (:filtered)
        nameFrom: name

Enable the filter by adding the following line to your config_list.yaml.

filter: config_filter.yaml

Discussion

0 comments

We use cookies to measure the performance of this website. Do you want to accept these cookies?