The views filtering is really handy, but some times being able to filter on the fields you're displaying doesn't really work or is undesired. For example an addressfield where there are multiple values or location where you need the extra processing of the views filter handler.
Although exposed filters are normally set via a form, you can manually set it against the view before it is executed and it will treat it as though given via a form. I think doing this would be a great way to extend the functionality of the views selection handler. In fact I think it could completely replace the way you currently select which fields to filter on with something a whole lot more powerful!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1989952-2-allow_match_on_exposed_filters.patch | 3.94 KB | tbkot |
Comments
Comment #1
andrewbelcher commentedOk, so here is a first go at a patch.
What it does:
This gets it to the point where it is useful and solves the use case I need right now... I've got a couple potential improvements below and there will be whole host of others, but I think a lot of it will be more about making sure someone who doesn't know what they are doing gets some helpful validation/help text to avoid and correct potential errors.
Things that could be improved:
Comment #2
tbkot commentedIn PHP 8 the patch in #1 causes the warning:
Here is updated patch