Conditional text fragments

This forum is for Single-Sourcing your Flare content to multiple outputs.
Post Reply
marisoul
Jr. Propeller Head
Posts: 9
Joined: Tue Oct 01, 2013 1:08 am

Conditional text fragments

Post by marisoul »

Hi all,

I have a topic that I'd like to use in more than one chapter. The content is slightly different, and is based on the specific chapter. For example: in one chapter I describe PART A and in the next I describe PART B. I have set two conditions: PART A and PART B. In the TOC, I've placed the same topic under two chapters, where I've checked 'PART A' in the topic's properties in the first chapter, and 'PART B' in the topic's properties in the second chapter. All is published in one PDF file.

I am aware that the PDF displays all conditions next to each other, and that conditions only have effect if I have use PDFs. But this is not the case here.

So: is there a way to use conditional text in 1 topic within the same PDF? Thanks in advance.
Nita Beck
Senior Propellus Maximus
Posts: 3667
Joined: Thu Feb 02, 2006 9:57 am
Location: Pittsford, NY

Re: Conditional text fragments

Post by Nita Beck »

There is not a way to control the conditioning you seek merely by what condition you have applied to a TOC item.

I suggest that you put the guts of the topic into a snippet, with your Part A and Part B conditioned content.

Then have two separate topics, each with its own heading followed by the snippet. In the first topic's properties, on the Snippet Conditions tab, set it to exclude Part B content. Set the second topic's Snippet Condition to exclude Part A.

Now put the topic that will show only Part A in the chapter where it belongs, and put the topic that will show only Part B in the chapter where it belongs.

HTH
Nita
Image
RETIRED, but still fond of all the Flare friends I've made. See you around now and then!
marisoul
Jr. Propeller Head
Posts: 9
Joined: Tue Oct 01, 2013 1:08 am

Re: Conditional text fragments

Post by marisoul »

Nita Beck wrote:There is not a way to control the conditioning you seek merely by what condition you have applied to a TOC item.

I suggest that you put the guts of the topic into a snippet, with your Part A and Part B conditioned content.

Then have two separate topics, each with its own heading followed by the snippet. In the first topic's properties, on the Snippet Conditions tab, set it to exclude Part B content. Set the second topic's Snippet Condition to exclude Part A.

Now put the topic that will show only Part A in the chapter where it belongs, and put the topic that will show only Part B in the chapter where it belongs.

HTH
Dear Nita,

Your suggestion worked perfectly. Many thanks.

Kindest,
Linda
Post Reply