Variable text in snippets

This forum is for Single-Sourcing your Flare content to multiple outputs.

Variable text in snippets

Postby PeteM on Mon Nov 26, 2018 1:23 am

Hi, new Flare user so please bear with me!

I have a set of import instructions which seem suitable for a snippet as they'll be used in lots of topics. It's essentially:

1) Click the import button.
2) Browse to and select [filename].
3) Click OK.


The problem is that the filename will be different each time, so I'm wondering if there's a way to insert non-snippet text in the middle of a snippet. I could do it by using variables, but I think I'd have to create a separate variable for each filename, which could be hundreds, and that kind of defeats the point of using a snippet. My gut feeling is that there's a better way to do this.

Any help would be much appreciated!
PeteM
Jr. Propeller Head
 
Posts: 2
Joined: Thu Nov 22, 2018 7:24 am

Re: Variable text in snippets

Postby Dave Lee on Tue Nov 27, 2018 12:32 am

You can use a snippet variable - you just have one variable, and can set that variable for each instance of the snippet.

How to override a Snippet variable definition in a Snippet -
https://help.madcapsoftware.com/flare20 ... ippets.htm
Dave Lee
Master Propellus Maximus
 
Posts: 5400
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Variable text in snippets

Postby PeteM on Tue Nov 27, 2018 1:14 am

That's exactly what I was looking for, many thanks.
PeteM
Jr. Propeller Head
 
Posts: 2
Joined: Thu Nov 22, 2018 7:24 am


Return to Single-Sourcing

Who is online

Users browsing this forum: No registered users and 4 guests