Search a news specific category, is it possible?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
zounars
Forum Members
Forum Members
Posts: 41
Joined: Tue Jun 20, 2006 11:38 am
Location: Italy

Search a news specific category, is it possible?

Post by zounars »

Hello all,

I look around the forum but can't find how to search a specific news module category and show results for this category only.

what i've done ?

I've created 5 news categories and created 5 pages (one page for each news category)

page A contains articles from news category A
page B contains articles from news category B
page C contains articles from news category C
page D contains articles from news category D
page E contains articles from news category E

Now when someone is on page A and lunch a search, I would like him to only see results from news category A.

please help me find this solution.

thank's for your help.
http://www.lenetpourtous.com/ - Hosting and Website design
xmas3
Forum Members
Forum Members
Posts: 41
Joined: Sat Jul 28, 2007 9:22 am
Location: Bratislava / Slovakia

Re: Search a news specific category, is it possible?

Post by xmas3 »

Im trying to do the same. Did you find a solution?
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: Search a news specific category, is it possible?

Post by Jeff »

You have to add an input to your search form named "passthru_News_category" and then you have to add a custom SearchResultWithParams() function to the News.module.php
beherenow_uk
Forum Members
Forum Members
Posts: 103
Joined: Fri Nov 28, 2008 11:26 am

Re: Search a news specific category, is it possible?

Post by beherenow_uk »

Jeff wrote:You have to add an input to your search form named "passthru_News_category" and then you have to add a custom SearchResultWithParams() function to the News.module.php
Hi Jeff,

What is the SearchResultWithParams() function that goes into New.module? Is this something you can either share, or pm me for a quote? I'd like to be able to search only certain categories within the news module.

thanks.
Post Reply

Return to “Modules/Add-Ons”