A variable is a piece of content that can have many different values, and when you publish, you choose which value Paligo should use. For example, you can have a product name variable and when you publish, you choose which product name should be used in the published content.
To use variables in your topics, you first need to create a variable set. In the variable set, you define what variables you need, and the different possible values that they can have. Each set of possible values is called a variant.
To find out how to insert variables in a topic, see:
To insert a variable in your content:
-
Select the topic or component in the Content Manager to open it in the Editor.
-
Place the cursor in a valid position for a variable.
You can insert variables into most types of text block, including
para
elements. -
Select the Insert tab in the Toolbar.
-
Select Variable.
-
Select the variable set that contains the variable to be used.
Alternatively, use the Search field to find the variable.
-
Select the variable.
-
Select OK.
-
Select Save.
After adding a variable, you can use the Preview feature to choose different variants. These allow you to see what value Paligo will use for the variable for each different variant.
When you are ready to publish your content, you can choose which variant Paligo should use for the published output.
You can use the Preview feature to see what values that are applied for your variables. This is useful for checking that the value you need is actually included in a variable set. If the value is not there, you will need to edit the variable set or create a new one.
To preview variables:
-
Select the topic or component in the Content Manager to open it in the Editor.
-
Select the Preview tab in the Toolbar.
-
Select Profile settings.
-
Select the Variables tab.
-
Select the variant that you want to preview in the topic.
-
Select Apply.
When you publish your content, you can choose which values (variants) should be used for the variables in your content.
-
In the Content Manager, select the options menu ( ... ) for the topic or publication you want to publish, and then select Publish.
-
On the publish dialog, choose the type of output you want Paligo to create, and set the Languages and Profiling Attributes.
-
Select the Edit option for Variables.
Paligo displays a list of all of the variable sets that are available.
-
For each variable set that is used in your topic or publication, select a variant. The variant's values will be inserted into the relevant variables in your content. Select OK to confirm.
-
Select Publish document to publish your content.
Comments
0 comments
Article is closed for comments.