Copy link to clipboard
Copied
Hello everyone --
Is there a way to flag certain words/terms so that they will appear differently depending on which layout I am building? This would be similar to the build tags, but would find & replace keywords depending on the Help layout selected.
For example, "Air Help - Default" refers to using your "telephone", but if I build "Air Help - VoIP", all instances of of the word "telephone" will be replaced with "VoIP".
Copy link to clipboard
Copied
This sounds like a case for Variable Sets. Create a variable, add a set of values and assign the variable set to the Single Source Layout. You could have two single source layouts identical apart from the variable set used for your scenario.
Copy link to clipboard
Copied
Excellent! Thank you
Is it possible to do something similar for images?
Copy link to clipboard
Copied
I am afraid not. For that you'd have to add two images and apply a conditional build tag to each. Then use the appropriate expression as part of your SSL to leave the right image in. Trouble is, if you were going to that bother you may as well forget about the variable set and apply the build tag to both the image AND the text.
Copy link to clipboard
Copied
Hi there
Sorry to disagree, Colum, but actually you can do this with images.
Remember that variables may contain more than just text. So create a variable and give it the initial value of XX or some such. Then in the Variables pod, replace XX with the desired image. Then in the other variable sets substitute the desired image. The net result should be that your image changes depending on which varaible set you choose in the SSL recipe.
Cheers... Rick
Copy link to clipboard
Copied
Disagree away Rick