Using AG search on non-AG pages

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
bdurfee
Veteran Member
Posts: 32
Joined: 2013-02-07 17:44

Using AG search on non-AG pages

Post by bdurfee » 2022-03-04 14:56

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?

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Using AG search on non-AG pages

Post by jsetzer » 2022-03-04 15:49

Hi, this is the sample I was referring to when answering your direct email to me:

https://gist.github.com/bigprof/1dc6bc2 ... c48c2a4cc7
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply