Query and Search blocks: support for Instant Search #63053
Labels
[Block] Query Loop
Affects the Query Loop Block
[Block] Search
Affects the Search Block - used to display a search field
[Feature] Interactivity API
API to add frontend interactivity to blocks.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Now that we have the Interactivity API in Core, it's time to start experimenting with enhanced user experiences. One of these would be the ability to refresh the content of a Query block without refreshing the page while the user is typing a search.
What is your proposed solution?
I believe the simplest way to start with the Instant Search would be to convert the search into an instant search when the Search block is inside a Query block that has the
Forge Page Reload
option disabled.When the
Force Page Reload
option is disabled, theenhancedPagination
attribute istrue
and is passed via block context. Therefore, the Search block can subscribe to theenhancedPagination
context. If it istrue
, it can add the necessary directives using theHTML_Tag_Processor
and enqueue deview
file.The text was updated successfully, but these errors were encountered: