Hi,
I have followed this article to create a search field.
The search works fine and extracts the results as expected.
But after the search, when I navigate to the "List Display" it shows only the previously searched items not the complete list. To get the complete list I have to make a "Blank" search.
List Display Custom Header Code
Settings:
Display Type = Custom
Searchable = Article.title, Category.title
Thanks in advance
I have followed this article to create a search field.
The search works fine and extracts the results as expected.
But after the search, when I navigate to the "List Display" it shows only the previously searched items not the complete list. To get the complete list I have to make a "Blank" search.
List Display Custom Header Code
<input type="text" name="srch" placeholder="search...." class="form-control A" />
<br>
<input type="submit" name="search" value="Submit" />
Settings:
Display Type = Custom
Searchable = Article.title, Category.title
Thanks in advance
This is expected, the search term is still visible in the search text box, correct ?
If its then all good, you may add a button which resets and submits the form again to clear the search box and relist all items!
Regards,
Max
If its then all good, you may add a button which resets and submits the form again to clear the search box and relist all items!
Regards,
Max
Thanks for reply.
Yes, after some research I found that the reset button is the only solution, but is not really user friendly, so I decide to find make my custom search.
Yes, after some research I found that the reset button is the only solution, but is not really user friendly, so I decide to find make my custom search.
Another easy solution would be to add the serch field parameter to the "list display" link:
This will pass an empty srch string which means the list will be reset.
Regards,
Max
link + &srch=
This will pass an empty srch string which means the list will be reset.
Regards,
Max
+1
This is a smart solution, thanks for the tip
This is a smart solution, thanks for the tip
This topic is locked and no more replies can be posted.