Skip to main content
Inspiring
July 27, 2016
Answered

RoboHelp 2015 (12.0.2.384): Search returns topics not been included in the TOC

  • July 27, 2016
  • 3 replies
  • 3065 views

ENVIRONMENT: Windows 7 Enterprise SP1, 8.00 GB RAM, 64-bit OS, Office 2010, Adobe Acrobat X Pro, Acrobat Reader DC 2015.017.20050

PROJECT DESCRIPTION:

  • A single RoboHelp HTML project with three outputs. One of the outputs is a "validation reference" that has its own Table of Contents.
  • The Validation Reference Table of Contents contains a subset of the topics in the main Help system. For example, the main Help system TOC contains a folder called "Administration"; that folder is not in the Validation Reference TOC.
  • The Validation Reference is posted to a public web site. Therefore, we've applied the "Non_public_info" tag to content in shared topics that we do not want to appear on the public web site.
  • WebHelp Settings are as follows:
    • Validation Reference TOC
    • No map files, no browse sequences
    • Conditional Build expression: NOT_Non_public_info_AND_NOT_StyleGuidelines_AND_NOT_TRP (We keep our Style Guidelines in the project to make it easy to access during development. TRP content is to be excluded because not released.)
    • Exclude Unreferenced Topics from Output is selected.
    • Search Options. Only "Show Total Number of Search Results" and "Show AND Search Option in Output" are selected.
  • After generating the WebHelp, we remove the folders that we do not want (RoboHelp generates empty folders even though the folders are not in the TOC.)

PROBLEM: A search in the Validation Reference Help brings up topics that we think should not be included because the topics themselves are not in the Validation Reference TOC. For example, The topic "Data Quality Analysis" is in the main Help TOC, but not in the Validation Reference TOC. Therefore, we don't expect the topic to show up at all in the Search Results pane. But it does. When the user clicks the topic, the "Resource cannot be found" message appear.

Nothing shows up from the Style_Guidelines topics because the StyleGuidelines conditional build tag is applied to the entire folder and to the "Style Guidelines" book in the main TOC. (Same applies to the TRP folder.)

QUESTION: Why are topics that are not in the TOC and whose folders are not in the project at all showing up in the WebHelp during a search? Do we need to rewrite the conditional build expression or set up conditions differently. We assumed that not having topics in the TOC, not including the unreferenced topics in the output, and removing the empty folders would be the way to go. All help welcome!

Thanks so much.

Carol Levie

This topic has been closed for replies.
Correct answer Amebr

The table of contents does not control what ends up in the output for online outputs. All untagged content, and tagged content that is not excluded by the build expression will be included. The setting  "Exclude unreferenced topics from the output" will further exclude any topics that aren't in the ToC AND aren't linked from any topic that will be included in the output.

In contrast, for print output the table of contents does control what ends up in the output. I think this trips up a lot of people.

If you generate the help and do not delete the unwanted folders, do you still get the error? If not, you know that the topic is being referenced somewhere in the Validation Reference content.

Here's the help from RH11. I can't imagine this would have changed, but you could do a search to double-check for RH2015.

Exclude Unreferenced Topics From Output

Select this option to exclude any topic that exists in the project but is not the default topic in the layout or is not referenced from the selected TOC, index, or browse sequence, or any referenced topic.

note:  RoboHelp displays the unreferenced topics that are excluded from the output in the Output View pod.

3 replies

Inspiring
July 29, 2016

I don't see a way to "Reply to All", and so hope that by replying to my original post, I'm replying to all of you.

  • I did some analysis yesterday. I looked at each topic in the main TOC, noted whether it had a topic-level tag or not, noted whether it was in the Val Ref TOC, checked to see whether it was in the search results and, if so, whether the link was broken. I also then checked to see whether topics that are not in the Val Ref TOC but that appear in the search results contained links to topics in the Val Ref TOC, or to topics with links to topics that are not in the Val Ref TOC but that contain links to topics with links to topics in the Val Ref TOC. Murky and confusing!
  • Based on my initial analysis, I believe that Amebr is mostly correct. The search results do include untagged topics with links to topics in the Val Ref TOC, or with links to topics with links to topics in the Val Ref TOC. However, I don't understand why clicking those links brings up the content, considering that I deleted the output folders containing those topics. RoboHelp must be doing something under the covers to include the conten
  • The untagged topics that generate a resource error when clicked from the search results pane do not appear to be linked with ANY topics in the Val Ref TOC or with any topics that contain links to topics in the Val Ref TOC. Clearly, something in the output is 'remembering' that the Help was generated with untagged topics (there must be a list somewhere) that are no longer there. Hence the error message.
  • One further mystery. There are several topics that are untagged and that are not in the Validation Reference TOC. When I search for those topics or for content those topics, the topics do not appear in the search results pane! I expected to see the topics and to get a resource error.
  • Topics with the Non-public_info tag do not appear in the search results. That works as expected and as described by Amebr.

I haven't tried Peter's approach yet, but thanks for the idea. Since we probably don't want to exclude all the "untagged but linked" content, we may want to simply identify the "untagged and unlinked content" and apply a NotValRef tag to it.

Thanks again for all your helpful comments.

Regards,

Carol Levine

Community Expert
August 1, 2016

One thought about why the deleted topics might display.

If you delete them from your C drive then copy/ftp/publish the output folder to your web server, then those original files/olders will still exist on your web server unless you delete them manually.

It's possible that you also deleted some of the "search" files robohelp generates, so the original "search" files might still be on the server and thus be returning old search results.

Inspiring
September 9, 2016

Before generating the output, we delete everything from the output folder.

Thanks for the idea though.

Carol

Inspiring
July 28, 2016

Thanks so much for the speedy replies, which are so appreciated

I'm printing out your replies and plan to do a bit more testing.

--Carol

AmebrCommunity ExpertCorrect answer
Community Expert
July 28, 2016

The table of contents does not control what ends up in the output for online outputs. All untagged content, and tagged content that is not excluded by the build expression will be included. The setting  "Exclude unreferenced topics from the output" will further exclude any topics that aren't in the ToC AND aren't linked from any topic that will be included in the output.

In contrast, for print output the table of contents does control what ends up in the output. I think this trips up a lot of people.

If you generate the help and do not delete the unwanted folders, do you still get the error? If not, you know that the topic is being referenced somewhere in the Validation Reference content.

Here's the help from RH11. I can't imagine this would have changed, but you could do a search to double-check for RH2015.

Exclude Unreferenced Topics From Output

Select this option to exclude any topic that exists in the project but is not the default topic in the layout or is not referenced from the selected TOC, index, or browse sequence, or any referenced topic.

note:  RoboHelp displays the unreferenced topics that are excluded from the output in the Output View pod.

Captiv8r
Legend
July 28, 2016

I would have to respectfully disagree with the statement about the TOC not controlling what ends up in output.

I know that many folks over the years have somehow expected this behavior. And I believe that's precisely why we now see the option for excluding unreferenced content.

So by using the unreferenced content option you are, in fact, controlling what is in the output via the TOC.

Cheers... Rick

Peter Grainge
Community Expert
Community Expert
September 12, 2016

Hi, Rick.

When the previous writer set up the Val Ref TOC, she used a conditional build expression to explicitly exclude tagged content such as our Help Style Guide (which we keep in the project for ease of access) and some future content. She did this even though that content was not in the Val Ref TOC.

Based on her research, she did not think it was necessary to tag all the other untagged topics, which are in the main Help project but that are not intended for the public website. So yes, she believed that the untagged topics would not appear in the Val Ref output because she selected the Excluded Unreferenced Topics option.

In fact it did work correctly in the initial release of the 3.1 project and in subsequent updates.

The problem only emerged with the next release. Between 3.1 and 4.0 we added writers and topics with lots of hyperlinks. It's likely that some reference to a Val Ref topic got included in one of the untagged topics.

But now we have tagged everything and as a team we are now fully aware that we have to think about how to tag each new topic.

Carol


If you use Exclude expressions you get what doesn't have that tag, whether

or not the other topics have tags.

If you use Advanced Expressions and create Include expressions, you get

topics with the specified tag(s) plus anything untagged. The untagged

topics are the big difference.

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.