Skip to main content
Known Participant
March 28, 2014
Question

How to apply conditional build tags to the topic title that is displayed in Search tab of CHM?

  • March 28, 2014
  • 1 reply
  • 315 views

I have the project in which 2 different words are used to reffer to one objects (this word/term depends on the customer). All other information related to functionality, steps, etc. are common. So:

  • In the help content (body of the files), I created 2 conditional build tags (CBT) for these terms.
  • In TOC, if topic title contains the term, I created 2 different topics reffered to the single topic file, but the title of the topic shows correct term (depends on CBT).
  • File names of this topics contain only term1.

The problem occurs when I generate CHM for CBT2 and search for the term1 (marked with CBT1) using the Search tab. All occurrencies where term1 presence in the file name, appear in the found results.

How can I resolve the issue?

These topics must be found by search (that's why "Exclude from search" option is not a decision).

This topic has been closed for replies.

1 reply

Captiv8r
Legend
March 28, 2014

Hi there

I think I'd tackle the issue by defining a variable for the term.

Cheers,,, Rick

limaconAuthor
Known Participant
March 28, 2014

I forgot to mention that I use RoboHelp 9. And as far as I understand, this version does not support user defined variables in topic titles...

Captiv8r
Legend
March 28, 2014

Ahhh, you are correct. I believe it was Version 10 introduced that.

So here's what I'd suggest. Even though you are unable to use a variable in a Topic Title, it can still be used in other places such as the TOC, the Index and in the Topic content. So I'd still recommend that you declare and use a variable for those items. Just to simplify things.

As for any topics that have the term in the title, you could create two topics. One with the term one way and the other with the term the opposite way. Then use a Conditional Build Tag to exclude and remove the one that shouldn't be found.

This may cause you a bit of a maintenance issue by having the same topic content in more than one place. (one for each topic)

So to overcome that, you would be able to add the main body information to a topic and use an Inline Frame in the two topics that would then simply be shells with appropriate Topic Titles. Either that or declare a snippet and use the snippet in both topics. Put the main part in the snippet.

Cheers... Rick