• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Replace words based upon the build

New Here ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

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.

Views

634

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

I am using RoboHelp 8

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

Thank you, but I can't get this to work. I already have the original help built. I have found where to create the User defined variable and I am using the original name in the built  guide as the Variable name and then the initail value as the name I want it to be. Is this correct? If so then how do I get it to apply to the entire document?

Thanks,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

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

var1.png

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

var2.png

and the HTML will look like this:

var3.png

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

No problem. The variable name serves no other purpose but to allow you to identify it. It does not affect the content at all. If you have "Dave" hundreds of times in your content, you'll need to replace that text hundreds of times with the variable. Then when you change that variable's value from Dave to Chris, the update is made hundreds of times in your topics. Hope this helps.


  The RoboColum(n)   @robocolumn   Colum McAndrew

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

Gentlemen,

Thank you both for your assistance . You have been a lifesaver. Two more questions. Is there a way for this to automatically change the TOC topics and the Books in the TOC? Also I assume that to get a different document for each variable I would just generate the output to a different folder for each instance?

Thank you,

Chris

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 04, 2011 Aug 04, 2011

Copy link to clipboard

Copied

LATEST

Right click any book or topic in the TOC and select Properties. You will see option to apply a variable.

You can keep changing the folder but I would create duplicates of the layout, one for each customer. Then set up each layout to have the right values and after that you just run the required layouts. Name them something like WebHelp Customer A, WebHelp Customer B and so on.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp