by Kevin Siegel
RoboHelp allows you to quickly create and use variables. What are variables and how can they help you? Variables can contain information that occurs frequently in your project, such as a product name, company name or copyright notice. After creating the variable, you can insert it into any RoboHelp topic or onto a template by simply dragging and dropping.
Let's say you want to have your company name appear throughout the project. You could accomplish the task the old-fashioned way by typing the company name over and over again. Or you can create a variable called CompanyName, whose definition is your actual company name. After creating the variable, it's a simple matter of dragging the CompanyName variable into any topic.
Now here's the cool part. Assume your company name now appears throughout your project, and now you want to change it. Without the variable, you would have to search your entire project and update the company name. Thanks to variables, all you will need to do is update the definition of the CompanyName variable and you will change the displayed company name project-wide in just a few seconds.
Create a Variable
Insert a Variable into a Topic
RoboHelp allows you to quickly create and use variables. What are variables and how can they help you? Variables can contain information that occurs frequently in your project, such as a product name, company name or copyright notice. After creating the variable, you can insert it into any RoboHelp topic or onto a template by simply dragging and dropping.
Let's say you want to have your company name appear throughout the project. You could accomplish the task the old-fashioned way by typing the company name over and over again. Or you can create a variable called CompanyName, whose definition is your actual company name. After creating the variable, it's a simple matter of dragging the CompanyName variable into any topic.
Now here's the cool part. Assume your company name now appears throughout your project, and now you want to change it. Without the variable, you would have to search your entire project and update the company name. Thanks to variables, all you will need to do is update the definition of the CompanyName variable and you will change the displayed company name project-wide in just a few seconds.
Create a Variable
- Show the User Defined Variables pod by choosing View > Pods > User Defined Variables.
By default, the User Defined Variables pod is empty. Let's create a variable that will link text to your corporate Web site.
- At the top of the User Defined Variables pod, click the Create a new variable button.
The New Variable dialog box appears.
- Type a name into the Variable Name field (no spaces allowed).
- Type your company name into the Variable value field.
- Click OK.
Your unformatted variable text appears in a panel to the right of the variable list. You will add a hyperlink to the variable text next.
- Highlight the variable value (your company name).
- Right-click the selected text and choose Insert Hyperlink.
The Hyperlink dialog box appears.
- Select Web address from the Link to drop-down menu.
- Type your corporate Web address into the field to the right of http://
- Click OK.
- Save your work.
Insert a Variable into a Topic
- Open a topic.
- Drag your variable from the User Defined Variables pod into your topic.
The variable value will appear in the topic. The value will be formatted to match the CSS attached to your topic and contains a hyperlink.
- Drag the variable into more topics.
- Save your work.
- At the right of the User Defined Variables pod, double-click the linked text to your company.
The Hyperlink properties appear. If the Web address you typed a while ago was incorrect, you could fix it now.
- Click OK.
Anywhere you used the variable (two times or 10,000), the value instantly updated. How cool is that?
***
Looking for Adobe RoboHelp training? Need it fast? IconLogic has a two-day, live, online RoboHelp 8 class coming up October 22-23, 2009. Worried about your class canceling? You'll be happy to hear that we never, ever cancel our classes (even if there's just one student registered). Click here to learn more about my online classes.
***
Follow Kevin on Twitter: http://twitter.com/iconlogic.
Comments