Including G2 Search Results in non-G2 page

heruraha

Joined: 2006-02-22
Posts: 21
Posted: Wed, 2006-02-22 03:39

I'm building a client site that consists primarily of a journal, and G2.

I'm trying to build a search page that includes the G2 Search Results embedded alongside search results from the journal.

I've successfully pulled the G2 data by using:

require("gallery/embed.php");
GalleryEmbed::init();
$foo = GalleryEmbed::searchScan($bar);

But I can't figure out how to apply the Template for just the G2-style search returns. I don't need to write a new script to process all that data in $foo, do I? Can I just embed that nicely formatted G2 Search Return into my Journal search page?

Thanks in advance!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-02-22 10:08

you'll need a script to translate the data structure format returned by searchScan() to the data structure that joomla expects.

 
heruraha

Joined: 2006-02-22
Posts: 21
Posted: Wed, 2006-02-22 10:23

Thanks for the tip, I'll research and see what I can find, though I'm not currently using Joomla and to be honest I'm not even sure exactly what it is, but it looks like there's lots of support for that on here.