Gossamer Forum
Home : Products : Links 2.0 : Customization :

multiple link.html in search results

Quote Reply
multiple link.html in search results
Can somebody help me to get multiple link.html in search results?
I have solve the problem for the link results
at in category.html.I have done something similar to multiple category mod in the "sub site_html_link" in site_html_template.pl

But I cant find link.html in "sub site_html_search_results"
Are somebody know how to make multiple link.html in search_results or can somebody tell me where "sub site_html_search_results" knows the name of the link template?

Thanks
Quote Reply
Re: multiple link.html in search results In reply to
You need to replace references to the sub site_html_link routine in the search.cgi file.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------




[This message has been edited by Eliot (edited January 04, 2000).]
Quote Reply
Re: multiple link.html in search results In reply to
gosup,

What did you do to get multiple link.html in a single category?

Thanks.
Quote Reply
Re: multiple link.html in search results In reply to
TrainedMonkey ,
I have not multiple link.html in a singel
category.I have only multiple link.html
based on a main category.
Example:
I have 2 categories host and promotion in the
main page(home.html).I want to display
for host:webspace,system and monthly fees
for promotion: only monthly fees.
I have solved this problem(this is not difficult).If you want to know how to do this than reply.

What I want is different link.html in the search results(this is a singel page) but I have not solve this problem.
Quote Reply
Re: multiple link.html in search results In reply to
Gosup,

Let me be more specific then....

1) Replace &site_html_link references in the search.cgi file with &site_html_search_link.

2) Create a new sub-routine in the site_html_templates.pl file that is a copy of the site_html_link sub-routine . Name this sub-routine: sub site_html_search_link. Yet load the a new template file called searchlink.html.

3) Create a new template file called searchlink.html.

That should do it.

BTW: I have this working on my LINKS generated site.....

Go to:

vlib.anthrotech.com/bin/search.cgi

Select Titles Only or Titles and Summaries.

You will see two different formats.

Have a nice day!

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------





[This message has been edited by Eliot (edited January 06, 2000).]
Quote Reply
Re: multiple link.html in search results In reply to
Thank Eliot,
I have understand what you mean.
I have visit http://vlib.anthrotech.com/bin/search.cgi

and I can only say super.This is a real advanced search.
I think there is a resource in the forum to generate "Search Category" and I think it was with a drop down menu but how you ad radio buttons.
The search by date is also very nice.I find the code in the forum.
I say a big THANKS for your help in this forum.
Quote Reply
Re: multiple link.html in search results In reply to
Eh,
why is the http://vlib.anthrotech.com/bin/search.cgi
shown as a text and not as a URL??
Must I have post a special format,so that UBB
understand it as a URL?
Quote Reply
Re: multiple link.html in search results In reply to
You have to use the following codes:

[ u r l ] (without the spaces) [/u r l ]

to make a link in UBB.

Howz about reading the FAQ about this Forum???

Smile

Thanks for the compliments about my site. Nice suggestion about making the drop-down menus....However, I do not want to inundate my users with TOO many search options.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------



Quote Reply
Re: multiple link.html in search results In reply to
gosup,
If you would be able to post how you got the separate html for each category, I'd be very grateful.
Thanks.
Quote Reply
Re: multiple link.html in search results In reply to
TrainedMonkey,
This is how to define multiple link html for
different categories.
Example:5 main categories in homepage and you want that each or any of these categories and their subcategories use different link templates.
This is the same like the multiple category mod.

Open site_html_template.pl an go to
sub site_html_link

Before any code ad:
my $template_link;
# Set the appropriate template file to load
if ($category_name =~ "category1") {
$template_link = "link1.html"; }
elsif ($category_name =~ "catgeory2") {
$template_link = "link2.html"; }
#all other categories use standard link template
else { $template_link = "link.html"; }


at the end of sub site_html_link

replace:
return &load_template ('link.html', {

with:
return &load_template ( $template_link, {


that is all.
How I said,this is the same procedure like the multiple category mod.
I hope you understand my english.
Quote Reply
Re: multiple link.html in search results In reply to
gosup,
Thank you very much! Smile Smile I'm looking forward to plugging it in.
Quote Reply
Re: multiple link.html in search results In reply to
Hello all,

How about Multiple search_result.html follow by the category? i already have search by category mod but is it possible to set up multiple search result follow by the category selected? please help...

Thanks...