Publishing with conditions
Conditional publishing allows one source of content to be written for one or more audience, product, or platform. This information can then be dynamically published and only specifically required content included in the output.
Preparing for the exercise
You can download sample files for the exercise here.
Marking up content with conditional attributes
-
Open the topic to modify.
-
Enter the text that is to become conditional. For example, one or more paragraphs, an entire table, a figure, or other content.
-
Select the specific content to assign a conditional attribute to. For example, a single paragraph within the source.
-
In the Right Rail ensure the Properties display.
-
Add an attribute for audience, product, or platform.
-
Assign a value to the attribute. The content display updates to show conditional markup has been applied.
Previewing conditional content
-
Click Preview.
-
Under Filters, select or deselect the conditions to show or hide.
-
Select or deselect Highlight conditions text.
Creating a condition preset
A condition preset is a collection of properties that define what is to be included or excluded, or otherwise marked up, during the generation of output.
-
From the Map Dashboard select the Condition Presets tab.
-
Click Create.
-
Select Add (or Add All).
-
Name the condition.
-
Select an attribute, label, and action combination.
-
Repeat as required.
-
Click Save.
Generating conditional output
Once conditions have been applied to content it can be generated as output. This can use either a Condition Preset or a DITAval file.
Generating conditional output using a condition preset
-
Select the Output Presets tab.
-
Select an output preset.
-
Click Edit.
-
Under Apply Condition Using select a Condition Preset.
-
Click Done.
-
Generate the output preset and review the content.
Generating conditional output using a DITAval file
The DITAval file can be used to publish conditional content. This requires a file to be created or uploaded and then referenced at publishing.
-
Select the Output Presets tab.
-
Select an output preset.
-
Click Edit.
-
Under Apply Condition Using select a DITAval file.
-
Click Done.
-
Generate the output preset and review the content.