Hi Roger and Crag,
First of all, thanks very much for providing such useful and
elegant tricks! I like a "simpler is easier" approach, especially
when I have to pass a project off to the client for them to
maintain.
Now onto my difficulties in getting either solution to work.
A primer: I have two files that I'd like to hide from search.
One file is linked to via a toolbar button The other file is called
as a popup from multiple documents. My output is WebHelp.
I first tried the javascript solution as it seemed the
simplest for my client to replicate. Unfortunately, I haven't been
able to get it to work. Here's what I've done:
1. Renamed the two files using the prefix nsrch_
2. Generated the WebHelp
3. Opened whfhost.js and replaced the code as directed
4. Changed the prefix in the code to my own prefix (nsrch_)
5. Tested offline (didn't work)
6. Tested online (still didn't work)
I did comment out the appropriate line depending on where I
was testing. Still no go. Any insight into the matter would be most
appreciated!
Now onto the equally nifty Conditional Build trick. I tried
it and it works beautifully! Unfortunately, there's one big caveat.
When I generate the WebHelp, the links to the pop-up file from the
topics themselves are not generated. So, while my file is nicely
hidden from the search engine, it's also hidden from the topics
themselves. Gah!
Any ideas? I'm starting to wear a thin patch on my head from
all the head-scratching and hair pulling
Thanks in advance!
kindest regards,
Hannah ^_^
EDIT: I found a slightly different version of Crag's method
here
and, using the associated
TechNote,
I was able to get it to work! Yay!
However, I'm still immensely interested in getting Roger's
method to work. Although the above method is easy once you know
what you're doing, I'd rather a method with less steps like Roger's
as it's my clients that have to ultimately do the work in the long
run