Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category?

Quote Reply
Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category? In reply to
Hi,

OK, I think I see the issue. search() actually grav $IN->get_hash again, thus ignoring the value we overwrote. So try:

Code:
if ($args->{catname}) {
my $catid = $DB->table("Category")->select( ['ID'], { Name => $args->{catname} })->fetchrow;
if ($catid =~ /^\d+$/) {
$args->{catid} = $catid;
$IN->param('catid' => $catid);
}
}

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread How To: search.cgi?catid=21&query= to return all links in the category? socrates 9648 Feb 20, 2017, 9:45 PM
Thread Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category?
Andy 9414 Feb 20, 2017, 10:56 PM
Thread Re: [Andy] How To: search.cgi?catid=21&query= to return all links in the category?
socrates 9408 Feb 20, 2017, 11:45 PM
Thread Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category?
Andy 9408 Feb 20, 2017, 11:49 PM
Thread Re: [Andy] How To: search.cgi?catid=21&query= to return all links in the category?
socrates 9396 Feb 21, 2017, 1:23 AM
Thread Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category?
Andy 9387 Feb 21, 2017, 2:26 AM
Thread Re: [Andy] How To: search.cgi?catid=21&query= to return all links in the category?
socrates 9365 Feb 23, 2017, 12:53 AM
Thread Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category?
Andy 9355 Feb 23, 2017, 1:18 AM
Thread Re: [Andy] How To: search.cgi?catid=21&query= to return all links in the category?
socrates 9361 Feb 23, 2017, 2:26 AM
Thread Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category?
Andy 9346 Feb 23, 2017, 2:46 AM
Thread Re: [Andy] How To: search.cgi?catid=21&query= to return all links in the category?
socrates 9227 Feb 27, 2017, 12:44 AM
Post Re: [socrates] How To: search.cgi?catid=21&query= to return all links in the category?
Andy 9177 Feb 28, 2017, 12:38 AM