Page 1 of 1

[SOLVED] Is it possible to Search within a News module Category?

Posted: Fri Jul 30, 2010 1:00 pm
by heffegg
Hi I have a client who wants to search within News module and limit the search to a selected category.
They don't want results found on pages outside of the news category found / displayed.
Is this possible?

If yes can someone provide me with an example of the tag or code to try this.
Thank you.

Re: Is it possible to Search within a News module Category?

Posted: Sat Jul 31, 2010 1:31 am
by pukka
The following code will search and show results from only the News module.

{search modules="News" resultpage="search-results"}

You can of course name your results page something else.


This following might also be of assistance:

http://forum.cmsmadesimple.org/index.ph ... 167.0.html

http://forum.cmsmadesimple.org/index.ph ... .msg184583

Re: [SOLVED] Is it possible to Search within a News module Category?

Posted: Mon Sep 13, 2010 11:13 am
by steph_30
Hello,

Sorry to "re open" this topic, but I can't find any answer to my question.

I need to start a search on the page's content  and the news.

How can I do that (ie what is the name of the module for the content) ?

I tried :
{search modules="News, Contents" resultpage="myPage"}

but it doesn't work.


(I'm using CMSMS 1.6.7 for the site)

Thanks a lot for answer

Re: [SOLVED] Is it possible to Search within a News module Category?

Posted: Mon Nov 01, 2010 10:24 pm
by heffegg
The  {search} tag will search both page content and the news module - all categories.

My problem was the client didn't want results from "page content" to show  :)