This content has been marked as final. Show 2 replies
It seems that snippets would do the job; you'd create a snippet for each combination of "x,y,z," "y,z," "x,y," etc., and then insert the snippets in the proper topics.
If the value of "y" changes, you would, of course, have to change the value in each snippet that contains "y." Therefore, you'd usually be editing only a handful of snippets at any one time.
Keeping track of their usage is easy: right click the snippet, and select Properties > Used In, or select Tools > Reports > Snippets.
It would seem you should be able to accomplish this using a combination of variables and snippets and maybe even Conditional Build Tags.
First off, allow me to try and clarify the difference between snippets and variables.
Maybe you have a standard disclaimer that you have to repeatedly type out every time you insert some code. Perhaps your application always has the user making changes to the Windows Registry. If you are a good do-bee, you know you should insert a disclaimer with each occurrence. Perhaps a note admonishing the user that it's a good idea to maintain a backup of the registry in case they corrupt it and they are on their own if they don't have a backup. Something like this. So this could exist on 40 or 50 pages. Instead of repeatedly and laboriously typing it out on each page where it's needed, you define a snippet. Then when it's time to add a new hack, you just type the hack and insert the reference using the snippet. The great part of it is that if you ever wish to amend the verbiage, you only have to update the snippet.
With Variables, in all RoboHelp HTML classes I conduct, I always advise there are two that are good candidates. Company Name and Company Acronym. With these, you define the variable(s) in the pod and assign an initial value to it. When you prepare to generate the output, you have the opportunity to change that value and see it reflected anywhere you used the variable.
You are able to insert a variable into a snippet. For example, Company A (the variable) recommends you back up your registry... But you can't insert a snippet into a variable. See the difference?