This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

RomaldyMinaya
RomaldyMinaya

Hi,

If you're implementing list filter and don't want to specify the options hardcoded in the config_filter.yaml file be sure to know this:

status:
    modelClass: Vendor\Plugin\Models\YourModel
    label: 'vendor.plugin::lang.labels.status'
    type: group
    conditions: status in (:filtered)
    options: getStatusOptions

Don't forget to specify the modelClass parameter. This took me an entire morning debuggin the Filter widget class. Hope it helps.

jd18926
jd18926

Just saved me a couple of hours and a lot of nerves. Thank you very much!

adc_91
adc_91

Excellent contribution, thank you very much.

maraerben
maraerben

Thank you, this post saved my life! Maybe this example should be part of documentation...

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.