Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Category_Results

Quote Reply
Category_Results
Hi!

I wanted to edit the variable "category_results" in the suitable template-file, but it didn't work!

Is there another possibility to edit it? I want to have another color, italic, ...

Please help me!!!

-Dan

Quote Reply
Re: Category_Results In reply to
In search.cgi =>

Code:
foreach $category (@category_results) {
if ($nh == 1) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<li>$linked_title\n|;
}
$cat_hits++;
}
Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Category_Results In reply to
I edited as follows:


foreach $category (@category_results) {
if ($nh == 1) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<font face="arial" size="2" color="#660A0A"><i>$linked_title</i></font>\n|;
}
$cat_hits++;
}

It doesn't work! What should I do?

Where can I put the notice for new links and categories on and off?

Quote Reply
Re: Category_Results In reply to
I just live and breathe Links2, sometimes I wonder why.....

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Category_Results In reply to
I edited as follows:


foreach $category (@category_results) {
if ($nh == 1) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<font face="arial" size="2" color="#660A0A"><i>$linked_title</i></font>\n|;
}
$cat_hits++;
}

It doesn't work! What should I do?

Where can I put the notice for new links and categories on and off?

Quote Reply
Re: Category_Results In reply to
It does work.

What exactly are you trying to edit? Search result categories?

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: Category_Results In reply to
For example: You're searching for a word like "Sites"! All entries with the word "sites" were listed! The entries are in different categories:

Top:Download:Midi
Title - Description

Top:Games
Title - Description

I want to edit "Top:Download:Midi and Top:Games"! It must be arial, italic, has the size 2 and the color #660A0A!

Please help me

Quote Reply
Re: Category_Results In reply to
In your category.html template look for something similar:
Code:
<%if category%>

<font face="courier new,Arial, Verdana, Helvetica" size=2>
<b>Categories in <%category_clean%></b>
</font>
Quote Reply
Re: Category_Results In reply to
In my categories.html isn't an attribute like <%category_clean%>! There is for example an attribute called <%category_results%>!

Please help me!!