We are migrating to Flare and as part of that have started implementing variables across all of our projects.
When you create webhelp output, it seems that a new span is created with the name of the variable, rather than the variable text being substituted and inheriting the style in which is was located. (see attached image below)
I thought that it might be based on a setting somewhere, but have had a bit of a look and search some help/forums, but could not see an answer.
Any help would be appreciated.
Thanks,
Greg.
Variables not substituted in Webhelp output
Variables not substituted in Webhelp output
You do not have the required permissions to view the files attached to this post.
Re: Variables not substituted in Webhelp output
So your variable name is globalModule_AP and its value is Accounts Payable?
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Variables not substituted in Webhelp output
Yes, that is correct.
I would have thought that upon creation of the Webhelp output, the variable value would have been substituted in and inherited the style for the location in which it is placed. That is, the code would have been as follows and the variable would become styled as per h1:
<h1>Accounts Payable Data Structure</h1>
I would have thought that upon creation of the Webhelp output, the variable value would have been substituted in and inherited the style for the location in which it is placed. That is, the code would have been as follows and the variable would become styled as per h1:
<h1>Accounts Payable Data Structure</h1>
Re: Variables not substituted in Webhelp output
Yes, that's the way it should happen. When I create a new topic and replace the default heading text (the filename) with a variable, the topic code looks like:
I do seem to recall there being a problem in older versions of Flare when a variable was the only item in a heading (i.e., no text before or after the variable), but it seems like that related to its appearance in the TOC, not in the topic itself. But I could be remembering that wrong.
What version of Flare are you using? And what are the steps you follow to insert the variable? Are you inserting a span class at the same time or just using the default heading tag styles?
Code: Select all
<h1><MadCap:variable name="MyVariables.CompanyName" /></h1>What version of Flare are you using? And what are the steps you follow to insert the variable? Are you inserting a span class at the same time or just using the default heading tag styles?
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Variables not substituted in Webhelp output
I should have stated at the start that the Flare version I am using is 5.0.0.
What you show below is the code in the Flare editor, which is fine and what I was seeing also.
However, the problem is that when you create the WebHelp output, the variable value is not being substituted in. Actually, I just checked and it seems to work for the <title> tag but not the <h1> tag. Seems like a bug to me (see source of output below).
<head><title>Accounts Payable Data Structure</title>
<link href="../resources/stylesheets/master_output.css" rel="stylesheet" type="text/css" />
<script src="../SkinSupport/MadCapAll.js" type="text/javascript">
</script>
</head>
<body>
<h1><span class="globalModule_AP">Accounts Payable</span> Data Structure</h1>
In the <h1> tags, a span is created with the variable name rather than just using the variable value.
Also, I believe that the variables were inserting originally using MadCap Analyzer.
Finally, is there information somewhere that describes the recommended usage of variables? For example, where to use them, where not etc. It may be just my beginner Flare knowledge, but variables seem to be showing some inconsistent results.
Thanks for your help so far on this issue.
What you show below is the code in the Flare editor, which is fine and what I was seeing also.
However, the problem is that when you create the WebHelp output, the variable value is not being substituted in. Actually, I just checked and it seems to work for the <title> tag but not the <h1> tag. Seems like a bug to me (see source of output below).
<head><title>Accounts Payable Data Structure</title>
<link href="../resources/stylesheets/master_output.css" rel="stylesheet" type="text/css" />
<script src="../SkinSupport/MadCapAll.js" type="text/javascript">
</script>
</head>
<body>
<h1><span class="globalModule_AP">Accounts Payable</span> Data Structure</h1>
In the <h1> tags, a span is created with the variable name rather than just using the variable value.
Also, I believe that the variables were inserting originally using MadCap Analyzer.
Finally, is there information somewhere that describes the recommended usage of variables? For example, where to use them, where not etc. It may be just my beginner Flare knowledge, but variables seem to be showing some inconsistent results.
Thanks for your help so far on this issue.