Add a category filter to a backend list
5
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
There are no comments yet
Be the first one to comment