Page 1 of 1
[SOLVED] search module help
Posted: Tue Sep 11, 2007 7:13 pm
by JackOutoftheBox

I am interested in anyway that you can help me restrict the search module to only a specific page or pages? I'd like to use the search box in two different ways on the site. The main search box would be to search the entire site; the secondary search box would be to search only a specific part of the site.... is this possible, through a hidden parameter, perhaps?
Re: search module help
Posted: Wed Sep 12, 2007 2:54 pm
by RonnyK
Jack,
the easiest option would be to install "pisearch" as well.
The default "search" can be used for the selective area, as:
How do i prevent certain content from being indexed
The search module will not search any "inactive" pages. However on occasion, when you are using the CustomContent module, or other smarty logic to show different content to different groups of users, it may be advisiable to prevent the entire page from being indexed even when it is live. To do this include the following tag anywhere on the page When the search module sees this tag in the page it will not index any content for that page.
The tag can be placed in the template as well. if this is done, none of the pages attached to that template will be indexed. Those pages will be re-indexed if the tag is removed
Pisearch would then be usable for the entire site, as that module doesn't state that it checks the .
If you create a page and mark that one, "not show in menu" on the options-tab, you can call that page, but it won't show in the menu and you're able to search all (including the visible content of the used modules), so not only content.
Ronny
Re: search module help
Posted: Thu Sep 20, 2007 8:24 pm
by JackOutoftheBox
I have found that placing doesn't make a different with either. Am I doing something wrong?
SOLVED Re: search module help
Posted: Fri Sep 21, 2007 12:27 am
by JackOutoftheBox
Thank you for all of your help. From reading the discussion boards, all I needed to do was this:
Go to Extensions ยป Search and told it to Reindex All Content?...
Re: search module help
Posted: Fri Sep 21, 2007 9:35 am
by RonnyK
Jack,
if a topic is solved, will you mark the subject-line of the first post as solved by typing [solved] in the subject-line, to make it visible for others that this one is fixed.
Ronny