Skip to main content
Participating Frequently
August 4, 2011
Question

Replace words based upon the build

  • August 4, 2011
  • 1 reply
  • 730 views

Hello,

I am new to RoboHep and I have a question. I am trying to have different builds of a WebHelp for different companies. I want to be able to replace the name of the main Company throughout the WebHelp when I do a build for example. If the name of a Company is "Mike" and I am doing a build for a company named "Dave" everytime "Mike" appears in the original Help I want it to replace with "Dave" upon the build. I know I can use find and replace and just have different projects for each company, but is there a way to do this conditionally?

Thanks for the help.

This topic has been closed for replies.

1 reply

Participating Frequently
August 4, 2011

I am using RoboHelp 8

RoboColum_n_
Legend
August 4, 2011

Sure there is. You can use the User Defined Variables functionality for precisely this purpose. Make sure you have the Variables pod displayed (View > Pod > User Defined Variables) and click the top left icon (the one that looks like two cogs). Give the variable a name (e.g. companyname) and an initial value (companyA). If you then add the variable to the content instead of the actual company name, you only have to update the variable value for the change to be reflected everywhere the variable exists. So in summary, just create and add variable and change the varaibale value before creating your output.


  The RoboColum(n)   @robocolumn   Colum McAndrew
Participating Frequently
August 4, 2011

Check out the following variable. Notice that the value is "CompanyA":

If you click and drag the variable from the pod into the topic it will appear like this:

and the HTML will look like this:

So long as you do things this way, you should only need to change the value of the variable in the User Defined Variables pod for the change to be reflected throughout your content. If it doesn't do this, can you let us know.


  The RoboColum(n)   @robocolumn   Colum McAndrew

Sorry again, Maybe I am just doing this wrong. I have the word "Dave" 100 times in my

entire guide.

I want to replace it with the word Chris So I set the Variable name to "Dave" and the Variable Value to "Chris". When I drag it up to the topic all it does is insert the name "Chris" one time. It doesn't change all the "Dave"s to "Chris"s

The reason I am doing this is because I want to use this same help guide for 20 different companies. They may be, Chris, Dave, Mike, John , Bill and I just want to be able to change the one name and generate a new guide.

Thanks for your help. Maybe I am just dense today.