How do you confine a search to a certain page and its childr

I’m using the search behavior modified by john for ruby-lang. How would
I go
about restricting the search to just a certain page and it children. So
that it
could only return results from that page and its children.

-Anthony

Mike Moscow wrote:

I’m using the search behavior modified by john for ruby-lang. How would I go
about restricting the search to just a certain page and it children. So that it
could only return results from that page and its children.

As that behavior just does a “like” query on the pages and page_parts
table there is not an easy way to constrain it. You may be able to
modify it to discard any matches that do not have a certain page in
their ancestors, but I don’t know of any way to make this happen with
sql.


John L.
http://wiseheartdesign.com

their ancestors, but I don’t know of any way to make this happen with sql.

I’m interested in restricted search results as well. Please post back
to the
list if you come up with some ideas. I’ll do the same.

Todd M

Hi, I ended up removing the search behavior altogether. And used this
little ‘fake’ javascript search engine I found. You have to actually
set up an xml file for it to search. Its a pain in the rear but It
was a last resort solution because I had invested too many hours into
the project already. If you’re interested check it out:

http://www.tipue.com/products/tipueJS/

Its open source, quick and easy to set up. (this is an non-biased
review of it since I am in no way affiliated with them)