Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Search results templat

Quote Reply
Search results templat
Hi,

I'm working with an idea to make an application for FB, and I'll like to know if there's a way to have another search results template to be used to display the fb results?

In other words, I need a couple of search results templates, one will be used per my site and the other one for the fb app.

Jesus

PS
FB=Facebook :)
Quote Reply
Re: [Jesus] Search results templat In reply to
Hi Andy, folks...

I saw a thread here

And I think that's similar for what I need so, I created a new template set named: fb-template

and I add a couple of templates on that folder:

search_results.html
link.html

Now, on my form, I'm doing this:

Code:
<form action="http://www.mywebsite.com/cgi-bin/directorio/search.cgi&t=fb-template">
<input type="text" id="searchbox" name="query" value="" class="field" />
<input type="image" src="http://www.mywebsite.com/imagenes/buscar.gif" class="buscar" />
</form>

But I'm getting a 404 page for my search results.

Probably (and I'm sure, I'm missing something here)

Thanks for the advice and your help

Jesus
Quote Reply
Re: [Jesus] Search results templat In reply to
You want the t= argument to be passed in as input instead of part of the query string:

Code:
<form action="http://www.mywebsite.com/cgi-bin/directorio/search.cgi">
<input type="hidden" name="t" value="fb-template" />
<input type="text" id="searchbox" name="query" value="" class="field" />
<input type="image" src="http://www.mywebsite.com/imagenes/buscar.gif" class="buscar" />
</form>

Adrian
Quote Reply
Re: [brewt] Search results templat In reply to
Thank you Adrian, now it passed trough, however now I'm getting this message


A fatal error has occured:
GT::Config (13548): Config file 'language.txt' does not exist in directory '/home/mywebsite.com/html/cgi-bin/directorio/admin/templates/fb-template' or has incorrect permissions set. at /home/mywebsite.com/html/cgi-bin/directorio/admin/Links.pm line 230.

Please enable debugging in setup for more details.

As I mention before, I just had 2 templates on my fb-template directory, I might need to have more, but I'm not 100% sure

Thanks again for your help!

Jesus
Quote Reply
Re: [Jesus] Search results templat In reply to
You need a language.txt and globals.txt files in that directory.

Adrian
Quote Reply
Re: [brewt] Search results templat In reply to
Perfect!

I'm getting closer :)

Thanks for the help, will check this out and hopefully I'll have it ready tonight!

Jesus