Answered
Variables do not work with topic titles
Hi,
There seems to be a bug/limitation with variables in topic titles. Inserting them in the TOC works fine. The topic title in the TOC is displayed correctly. However, if you perform a search, all topics that contain a variable in the title are incorrectly displayed in the results--all text up to and including the variable is cut off.
You cannot (as far as I can see) insert variables for topic titles using the RoboHelp GUI. That is--unlike in the TOC--you cannot select Properties for a topic and insert a variable in the Topic Title (in the TOC it is called the Page Title). The way I inserted variables in my project (was one I upgraded from X5 to RH7) was via a search & replace operation for all *.htm files. This included replacing the HTML head <title></title> entry. For example:
Before: <title>What is an invoice profile?</title>
After: <title>What is <uservariable name=Document_type1 x-showvalue x-value="an invoice">an invoice</uservariable> profile?</title>
When I search for this topic, the search result is just profile? This problem applies to all topic titles that contain variables.
It seems as though variables in topic titles are not supported by RoboHelp, which is a major limitation of this feature. My project contains lots of variables in the topic titles, which renders topic searches useless, as the search result list is comprised mostly of cut-off and incomprehensible titles.
Anyone else have the same problem? Is there a workaround?
There seems to be a bug/limitation with variables in topic titles. Inserting them in the TOC works fine. The topic title in the TOC is displayed correctly. However, if you perform a search, all topics that contain a variable in the title are incorrectly displayed in the results--all text up to and including the variable is cut off.
You cannot (as far as I can see) insert variables for topic titles using the RoboHelp GUI. That is--unlike in the TOC--you cannot select Properties for a topic and insert a variable in the Topic Title (in the TOC it is called the Page Title). The way I inserted variables in my project (was one I upgraded from X5 to RH7) was via a search & replace operation for all *.htm files. This included replacing the HTML head <title></title> entry. For example:
Before: <title>What is an invoice profile?</title>
After: <title>What is <uservariable name=Document_type1 x-showvalue x-value="an invoice">an invoice</uservariable> profile?</title>
When I search for this topic, the search result is just profile? This problem applies to all topic titles that contain variables.
It seems as though variables in topic titles are not supported by RoboHelp, which is a major limitation of this feature. My project contains lots of variables in the topic titles, which renders topic searches useless, as the search result list is comprised mostly of cut-off and incomprehensible titles.
Anyone else have the same problem? Is there a workaround?
