Hello. I hope this is the right forum for this:
A colleague of mine is generating a CHM file (HTML Help target). Three of the topics share a snippet. This snippet includes three snippet conditions, one corresponding to each of the aforementioned topics.
When the topics are previewed in Flare, the snippet conditions work as expected. The included text is displayed, the excluded text is not. A generated Web Help target also displays the topics correctly.
HOWEVER, the HTML Help output is not displaying these topics correctly. All of the text to which the snippet conditions have been applied is missing, regardless of whether included or excluded in the particular topic.
Tables are not involved; the text in question is all in regular paragraphs.
My question: Is there a solution for this, or are snippet conditions fundamentally gimped for HTML Help in 4.2? If the latter, has this problem been resolved in later versions of Flare?
Thanks!
Flare 4.2: No snippet conditions in HTML Help target?
Re: Flare 4.2: No snippet conditions in HTML Help target?
Have you verified that the correct conditional tags have been included/excluded in the HTML Help's target file? You may have set them in the WebHelp target but not the HTML Help target.
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Flare 4.2: No snippet conditions in HTML Help target?
Hello Lisa. Well, the interesting thing is that the snippet conditions were not included/excluded in either the Web Help or in the HTML Help targets. This is because I had assumed that snippet conditions are only included/excluded at topic level, from the Properties > Snippet Conditions tab. And, as I mentioned before, the Web Help target handled the snippet conditions properly.
However, after playing around a bit more I discovered that if I explicitly included the snippet conditions in the HTML target, then they also functioned correctly! I find this counterintuitive because a) as stated previously, this is not necessary in the Web Help target and b) I had also understood that in Flare, an explicit Include is only necessary in order to override an Exclude. In other words, Include is the default state unless otherwise stated.
Does this behave any differently in versions after 4.2?
However, after playing around a bit more I discovered that if I explicitly included the snippet conditions in the HTML target, then they also functioned correctly! I find this counterintuitive because a) as stated previously, this is not necessary in the Web Help target and b) I had also understood that in Flare, an explicit Include is only necessary in order to override an Exclude. In other words, Include is the default state unless otherwise stated.
Does this behave any differently in versions after 4.2?
Re: Flare 4.2: No snippet conditions in HTML Help target?
It works fine in v6.1, in HTML Help; that's by setting snippet conditions on the topic (and not setting any conditions at target level).KChew wrote:Does this behave any differently in versions after 4.2?
Your assumptions about how snippet conditions are supposed to work are correct. Perhaps it was an issue with v4.2 (I can't remember); if you can reproduce it in a test project, then you know it's a bug and not something in your project.