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
Peter Grainge
Community Expert
Community Expert
August 4, 2011

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


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

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.