Gossamer Forum
Home : Products : Links 2.0 : Customization :

How to display all results regardless of category

Quote Reply
How to display all results regardless of category
I want my users to be able to see all results/links, regardless of category.
Is there a way to do this? Or is there a way to do this with Search?
Quote Reply
Re: [astrometro] How to display all results regardless of category In reply to
Look for the Tree Mod, it lists all cats/subcats, with the option to also list all links.

..wait a minute, you mean just for search results? You want to remove the category listing, and show only links?

In search.cgi, find this under sub main:

# Go through the hash just built, and build the complete link output. Store in $link_results.
foreach $setoflinks (sort keys %link_output) {
$cat_clean = &build_clean ($setoflinks);
$title_linked = &build_linked_title ($setoflinks);
# blocking next line will remove category results >
#
$link_results .= qq|<P>$title_linked\n|;
$link_results .= $link_output{$setoflinks};
}


That one hash (#) will do the job! Cool


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Jun 30, 2005, 1:56 PM
Quote Reply
Re: [PerlFlunkie] How to display all results regardless of category In reply to
I'll check tree mod.

Regarding search, I thought that might be a way around having a mod.
If I could get search to list results: Something like search.cgi?display=all

All I am trying to do is list all links on one page, ignoring category.

Thanks for any assist