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
Captiv8r
Legend
August 4, 2011

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.


Hi there

Indeed you will need to locate all instances of the name as flat text and replace it with the variable. Unfortunately there isn't a way past that. However, RoboHelp may be able to help if you choose to try one of the scripts supplied. Click View > Pods > Script Explorer and that should open the Script Explorer pod. Once there, you should see a folder with Sample Scripts. Expand that folder and inside should be a script named UDV Converter. Actually, I see two.

One is a UDV with UI. Right-click and run that script and you should get a dialog allowing you to specify the names and values.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks