Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Clint] Search Results Custom Template

Quote Reply
Re: [Clint] Search Results Custom Template In reply to
Hi Clint

If you want the complete search results page different for each search you can try using the dynamic_preserve option of “t” which is for the template i.e. “t=template1” “t=template2” in your search string.
You will need to set up new template folders with link and search results template in them.

<form action="<%db_cgi_url%>/search.cgi" method="GET">
<input type="hidden" name="t" value="template1">

Or something like:

/search.cgi?query=search&t=template1&pps=Yes&bool=and&substring=0&mh=10&Submit=Search

If you want just the link display to be different do a template dump and see what variables are available and you may be able to use a <%if%> statement in there with <%if pps=’Yes’%>link1.html<%elseif =’isPick=Yes%>link2<%endif%>

Another option might be to use a hidden variable depending on which way you are going to set it up.

Regards

minesite
Subject Author Views Date
Thread Search Results Custom Template Clint 5314 Oct 24, 2004, 5:31 PM
Post Re: [Clint] Search Results Custom Template
minesite 5175 Oct 25, 2004, 10:27 AM
Post Re: [Clint] Search Results Custom Template
sangiro 5216 Oct 25, 2004, 11:18 AM
Thread Re: [Clint] Search Results Custom Template
fatcatz 5174 Oct 26, 2004, 5:18 AM
Thread Re: [fatcatz] Search Results Custom Template
Andy 5162 Oct 26, 2004, 8:04 AM
Thread Re: [Andy] Search Results Custom Template
Clint 5120 Oct 29, 2004, 4:30 AM
Thread Re: [Clint] Search Results Custom Template
Andy 5175 Oct 29, 2004, 5:35 AM
Thread Re: [Andy] Search Results Custom Template
phuketkit 4952 Jul 13, 2006, 3:22 AM
Thread Re: [phuketkit] Search Results Custom Template
afinlr 4946 Jul 19, 2006, 10:53 AM
Post Re: [afinlr] Search Results Custom Template
pugdog 4886 Jul 19, 2006, 8:10 PM
Post Re: [Clint] Search Results Custom Template
fatcatz 5148 Oct 26, 2004, 8:46 PM