GravityView icon indicating copy to clipboard operation
GravityView copied to clipboard

Search Widget 🔍

Open zackkatz opened this issue 3 years ago • 5 comments

👉 WIP Search Tab branch

  • [ ] Refactor search to use QueryFilters
    • [ ] Include search on multiple values with OR logic on single value multiple choice fields (dropdown/list/radio)
  • [ ] Maintain security by ensuring that fields match visibility rules, searches are escaped, etc.
  • [ ] Refactor to use a helper method that can be swapped-out: $search_fields = json_decode( $widget->configuration->get( 'search_fields' ), true );
  • [ ] Add support for Gravity Flow fields
  • [ ] #1969
  • [ ] Add support for Nested Form fields
  • [ ] Add support for joined forms (Multiple Forms)
  • [X] Convert the search widget template to use GravityView 2.0 template API, passing context instead of modifying the global as we currently do
  • [X] - [x] Add a new "Search Layout" tab to the View Configuration screen
  • [X] Add a "Search Everything" field type to the field picker that only appears in the Search tab
    • [ ] Allow the field to be configured to search all fields, all fields + entry meta (including entry ID)
    • [X] When a new View is created, add a Search Everything field to the Search tab
  • [X] When search fields are added to the Advanced Search zone, an "Advanced" link toggle will be added to the Search Bar front-end
  • [X] Migrate existing Search Bar fields to the tab
    • [X] Migrate settings to the Field Settings structure

Small-ish improvements

  • [X] Prevent duplicate fields (?)
  • [ ] Add setting to opt-in to new search templates

Larger updates

  • [ ] Add new search templates with nicer styling

Separate feature

  • [ ] Search settings (This was part of Search everything, but it doesn't make sense. We cannot force this from the widget as there might be multiple.)
    • [ ] Include meta fields (ID, etc)
    • [ ] Exclude hidden fields: #2280

Challenges

Multiple widgets

Currently, we allow for unlimited number of WordPress Search Bar widgets ("sidebar" widgets) as well as GravityView Search Bar widgets.

Because of this, we may need to add the ability to show/hide fields.

  • [ ] Add current page rules for Conditional Logic to show/hide fields based on current page URL

zackkatz avatar Sep 22 '22 16:09 zackkatz

Related: https://github.com/GravityKit/GravityView/issues/2007

tobifjellner avatar Mar 11 '24 13:03 tobifjellner