Page 1 of 1

Using AG search on non-AG pages

Posted: 2022-03-04 14:56
by bdurfee
I have a site for which I use AG to manage all the data in a backend "admin" section.

The front-end (public-facing) pages are independent pages are not part of AG. However, I include defaultLang.php, language.php, and lib.php so I can use AG's query functions to get the data that is displayed.

I want to add a search to the front-end. Is there a way use AG's search to query the database and return the search results that I can then parse out and display on my pages?

Re: Using AG search on non-AG pages

Posted: 2022-03-04 15:49
by jsetzer
Hi, this is the sample I was referring to when answering your direct email to me:

https://gist.github.com/bigprof/1dc6bc2 ... c48c2a4cc7