Re: [socrates] Search only this (parent) category but also show links/results from all subcategories
Hi,
If you don't mind editing the code, you could open up /admin/Links/User/Search.pm, and find:
Then add this below it:
@children = $IN->param('catid-only');
}
Now when calling search.cgi, if you ONLY want to search the specific category, pass in catid-only=1234 , and it should ONLY search the category 1234, while ignoring any sub-cats.
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!
If you don't mind editing the code, you could open up /admin/Links/User/Search.pm, and find:
Code:
@children = grep !$seen{$_}++, @children;Then add this below it:
Code:
if ($IN->param('catid-only')) { @children = $IN->param('catid-only');
}
Now when calling search.cgi, if you ONLY want to search the specific category, pass in catid-only=1234 , and it should ONLY search the category 1234, while ignoring any sub-cats.
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!