GravityView icon indicating copy to clipboard operation
GravityView copied to clipboard

Enable separate search bar functionality for multiple embedded Views on the same post/page

Open tobifjellner opened this issue 1 year ago • 3 comments

Currently, when a search bar is used in GravityView, the generated URL includes generic query parameters (e.g., ?filter_3=Marketing&mode=all). This becomes problematic when multiple Views with search bars are embedded on a single page: a search executed in one View inadvertently applies to all embedded Views due to the non-unique filter references (e.g., filter_3).

To fix this, we could incorporate View ID into the filter name (e.g., ?filter_10_3 is View ID 10 and field ID 3). This would ensure that each View's search bar generates unique query parameters, thereby isolating the search scope to the intended View.

Implementing this would prevent cross-contamination of search results among multiple Views placed on a single page/post. This would enhance usability and provide a clearer, more predictable search experience for users.

tobifjellner avatar Mar 19 '24 11:03 tobifjellner

FreeScout #78288.
https://support.gravitykit.com/conversation/78288?folder_id=1

floatytheastronaut avatar Mar 19 '24 11:03 floatytheastronaut

FreeScout #78288.
https://support.gravitykit.com/conversation/78288?folder_id=1

floatytheastronaut avatar Mar 19 '24 11:03 floatytheastronaut

That was actually a "feature". We suggest that when users want to implement a UNION.

rafaehlers avatar Mar 19 '24 17:03 rafaehlers