Gossamer Forum
Home : Products : Gossamer Links : Discussions :

category_short in search results?

Quote Reply
category_short in search results?
Hi,

In search_results.html is there anyway of making the category_results look like:

Ben Affleck
instead of...
Actors and Actresses : Actors : A : Ben Affleck

Is this possible? I have already managed to get rid of the "Home :" part of the category_results by editing Build.pm but I can't work out how to get rid of the middle sub categories.

JeffB

Quote Reply
Re: category_short in search results? In reply to
Best way to do this would be to modify search.cgi to send an array_ref back to the templates, then call each found result in a <%loop%> and process it the way you want.

It will all be so much easier if/when all data is sent back out of the program as an array_ref, that can be processed in the templates like the modify_select is done.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Plugins:http://LinkSQL.com/plugin
Quote Reply
Re: category_short in search results? In reply to
Pugdog,

Thanks for the replies. I am still half way through my Perl book so if you could shed a bit more light on this then that would be great. If it is going to be too much coding then let me know and I will drop the idea Smile

JeffB