REMINDER
Search Box for Blog
-
Hi, how do I create a search box for blog topics? I understand that there's a search box component available in Appdrag but it's only for the shop.
Please advice.
Thank you!
-
Hello,
For some reason I can't drop a search box right now, but it's indeed linked to the shop.
Entirely from my memory :
If you double clic on it you should see the code doing the research and printing the elements.You can modify it to look in the blog instead, there is the APIs : https://support.appdrag.site/blog/80-REST-API-for-Blog-and-Shop.html
I'm not sure you'll get away from this one without coding :/, let's wait the AppDrag answer in case of, since I'm just a user ^^
Best regards,
-
Indeed we don't have yet a search component for blog but if you can code few lines of JS you can directly call our Blog API described here: https://support.appdrag.site/blog/80-REST-API-for-Blog-and-Shop.html
and use a component like SELECT2 to do an ajax search and display the results:
https://select2.org/data-sources/ajaxPS: it's on our roadmap for later this year to have a search bar component for blog out of the box
-
Hi @Joseph-Benguira, thanks for the info.
Any progress on the plans to add this? I'm looking for it
@Pierre-SULPICE did you end up coding it? Do you feel like sharing?
-
Hello everyone- I've created this and shared the setup / code here:
https://community.appdrag.com/topic/536/blog-search-box