Until the Publishing Task Manager became available you could only redefine variables with command line publishing. You needed to define an external variable definition file and refer to it in a command line. Now you can redefine the values of any variables in your project for individual publishing actions to individualize each publishing output as you want. For example, if the product name referred to is different in two versions of your documentation, you can redefine your PRODUCTNAME variable (or whatever you have called it).
Redefining just a few variables manually:
1.Make a note of the variable names you want to redefine.
2.Open the action for editing and select the Custom Variables tab.
3.Click on Add and enter the name of the variable you want to redefine.
4.Select the variable type (HTML or Text) and enter its value, just as you would when defining a user variable.
Redefining a large number of variables from a list:
You can also import an edited list of variable definitions. The easiest way to do this is to first export the variables stored in your project to a text file and edit their definitions there. Then you can import the edited file in one easy operation.
1.In the Project Explorer, go to and use the Export button to export your variables to a text file. See User-defined variables for more information on working with variables.
2.Edit the list of variables in a text editor. You can remove variables from the list by deleting their definition lines and change the variable definitions, but don't try to change the variable names.
3.Open the publishing action for editing, select Custom Variables and use the Import button to import the edited variables list.
Tip: You can also use the Export button to export an edited list of variables from the action for use in other actions!
|