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.
[SOLVED] Is it possible to Search within a News module Category?
[SOLVED] Is it possible to Search within a News module Category?
Last edited by heffegg on Mon Aug 02, 2010 3:14 am, edited 1 time in total.
Re: Is it possible to Search within a News module Category?
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
{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
Last edited by pukka on Sat Jul 31, 2010 1:43 am, edited 1 time in total.
Peace & Love
--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}
web design london
--------------------------------------------------------------------------
Useful stuff: {$entry->fields|@print_r}
web design london
Re: [SOLVED] Is it possible to Search within a News module Category?
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
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?
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
My problem was the client didn't want results from "page content" to show
