Conditional text not appearing in heading

This forum is for all Flare issues not related to any of the other categories.
Post Reply
awells12
Propeller Head
Posts: 70
Joined: Wed Sep 02, 2015 7:51 am

Conditional text not appearing in heading

Post by awells12 »

I've run across a very odd problem...I have part of a topic heading tagged with a ScreenOnly condition, and the tagged text is not appearing in my CHM output.

- The CHM target is set to include the ScreenOnly condition
- Using the Preview function, I've noticed this does not happen in any other "ScreenOnly" targets
- I've never noticed this behavior in any other topics
- Nothing out of the ordinary in the XML
- There is other ScreenOnly-tagged content in this topic, but only the tagged content in the heading fails to appear

Does anyone know of a reason why a condition would not work in only the heading of one topic and in only one CHM target?
Image
Robotman
Sr. Propeller Head
Posts: 186
Joined: Sat Mar 04, 2006 3:05 am
Location: Melbourne, Australia
Contact:

Re: Conditional text not appearing in heading

Post by Robotman »

Could you post the code for both the heading (with condition) and for a paragraph in the same topic that uses the same condition?
\m/ Gary \m/
Flare 2024
Screaming Symphony
awells12
Propeller Head
Posts: 70
Joined: Wed Sep 02, 2015 7:51 am

Re: Conditional text not appearing in heading

Post by awells12 »

Heading (conditional text does not appear):

Code: Select all

<h1><MadCap:conditionalText MadCap:conditions="Primary.ScreenOnly">Controller - </MadCap:conditionalText>Weighting Tab</h1>
Paragraph (conditional text does appear):

Code: Select all

<p MadCap:conditions="Primary.ScreenOnly">To open the Controller, click <span class="bold">Capital Credits > Process > Controller</span>. For more information on opening the Controller, see <MadCap:xref href="CapCre_Controller.htm" class="RelLinkPageNumber">Controller</MadCap:xref>.</p>
The only difference between the two that I can see is that the condition is partially applied to the heading, but fully applied to the paragraph.
Image
Robotman
Sr. Propeller Head
Posts: 186
Joined: Sat Mar 04, 2006 3:05 am
Location: Melbourne, Australia
Contact:

Re: Conditional text not appearing in heading

Post by Robotman »

- I've run a test with your code and my CHM works fine (both heading and text).
- What version of Flare are you using?
- You could backup your project, close Flare, delete your Analyser and Output folders, then re-open Flare and try it again.
- You could create a brand new target (or topic) and see if that makes a difference.
\m/ Gary \m/
Flare 2024
Screaming Symphony
awells12
Propeller Head
Posts: 70
Joined: Wed Sep 02, 2015 7:51 am

Re: Conditional text not appearing in heading

Post by awells12 »

I created a new target and that seems to have done the trick. Not sure what happened to the old target that would make it render conditional text incorrectly, but oh well :)
Image
Post Reply