All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Config override for where to look for Low Search Filters?

Jason Boothman 10 Apr 2019 20:08 question, complete

We have recently created a couple filters for Low Search and was wondering if you had a config override in place for us to specify where to look for third-party filters.

If there isn't, would it be possible to make this a feature request?

We think it'd be nice to have b/c then we could put the filters in our project asset folder outside the add-on, which means we wouldn't change accidentally forgetting to copy a filter over during an add-on update.

Replies

  1. Low 11 Apr 2019 08:28

    You don't need a config override. You can already create a folder in the addons directory that contains your custom filters, see https://gotolow.com/addons/low-search... -- or add a filters folder to any of your existing custom add-ons.

  2. Jason Boothman 11 Apr 2019 16:32

    Right - I'm looking for something that will let me locate it outside the add-on directory - such as '/assets/filters'.

    If a filter is located WITHIN the add-on folder then anytime someone updates that add-on they have to be way of that add-on having a custom filter in it, but if the add-on would look outside it's directory, then we could keep it in a separate location so we don't have to worry about someone accidentally deleting the filter when they update the add-on.

  3. Low 11 Apr 2019 17:02

    Okay, but the folder inside the addons directory doesn't even need to contain an actual addon. A stand-alone folder with just a filters directory containing the filters will work as well. Would that be sufficient?

  4. Jason Boothman 11 Apr 2019 17:12

    So...like...

    /system/user/add-ons/low_search_filters

    ? How would Low Search know to look there?

  5. Low 11 Apr 2019 17:21

    Something like

    /system/user/addons/example/filters/my_filter/lsf.my_filter.php


    Low Search Native works this way.

    LS looks in each folder in the addons directory for any filters, regardless of there's an addon there. Thought I'd go that route, since you can enable/disable each filter in the LS settings...

  6. Jason Boothman 11 Apr 2019 18:02

    I...did not even know that was an option. Ideally, I think it'd be nice if anything outside the Low Search addon directory was disabled by default, but, this will work for me.

    Thank you!