Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 09:36:32 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155535 Posts in 21713 Topics by 7737 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Restrict Search to selected modules  (Read 414 times)
PurpleEdge

Offline Offline

Posts: 232



WWW
« on: May 28, 2010, 01:35:37 PM »

Is it possible to restrict search to selected modules only?

eg I have a wysiwyg page and a page-copy page that points to it and the search result brings up both pages, so I want to restrict search results to the wysiwyg page only.

Can I do this from Settings, or will I have to hack the search module?

I've only got wysiwyg listed in the search order setting, but it is still searching all pages.
Logged
pcwacht
AddOn Development
*
Offline Offline

Posts: 2859



WWW
« Reply #1 on: May 28, 2010, 03:29:48 PM »

backend -> page -> settings -> search

Have fun,
John
Logged

http://www.ictwacht.nl = Dutch ICT info
http://www.pcwacht.nl = My first
both still work in progress, since years.....
PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #2 on: May 29, 2010, 12:01:47 AM »

I've only got wysiwyg listed in the search order setting, but it is still searching all pages.

Is there some other place in Settings that I should use?

Maybe the Page-Copy module is seen as a wysiwyg page too because it is pointing to a wysiwyg page?

Edit:
I just deleted all modules from the search order field, and it still searches wysiwyg and page-copy modules. I'll dig into the code.
« Last Edit: May 29, 2010, 12:10:42 AM by PurpleEdge » Logged
thorn

Offline Offline

Posts: 980


WWW
« Reply #3 on: May 30, 2010, 02:10:13 PM »

Hello,

try the page-settings, not the overall-settings.
There its possible to deactivate the search for each page individually.


thorn.
Logged

PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #4 on: May 31, 2010, 12:38:24 AM »

Ah, thanks - I could use that!

I think I can disable it though globally by commenting out a couple of lines in the search module, so it only searches the modules I nominate in the search order list.

It would be nice if WB allowed class overloading so I didn't have to hack the original source code.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!