Conditional content makes it possible to show and hide different content for different deliverables. For example, a topic might be used in both the Installation Guide and Administration Guide. You might want to show one paragraph in the Administration Guide, and hide it in the Installation Guide. To accomplish this, you could apply the Administration condition to the paragraph. When you produce the Installation Guide, you could hide content that has the Administration condition applied.
You can conditionalize inline elements, such as uicontrol, wintitle, and cite. But do not tag a word or group of words with <ph> to apply a condition because it can cause major issues.
Tridion Docs uses the Condition Builder feature to manage conditions. All conditions that are available in the system are displayed in Condition Builder. Conditions are organized into three categories:
Product— includes conditions for different product names.
Platform—includes conditions for different operating systems, hardware platforms, and a few other items.
Other properties—includes conditions for release numbers, deliverable type, for example, Installation, Administration, Print, and HTML, and a few other items.
Audience— includes conditions for different users, such as end user, admin.
In Condition Builder, you can view all available conditions, select conditions that you will use in your content, and build a custom list of just the relevant conditions. You will use the custom list to select the conditions to apply to specific elements. You can add or remove conditions from your custom list at any time. Removing conditions from your list does not remove conditions from the content.
If you need new conditions added to the system, contact a Tridion Docs administrator/information architect.
Before publishing a deliverable that includes conditional content, select conditions that you want to show and conditions that you want to hide.
If you need to show different conditions for variations of a publication, for example, PDF and online help, create different publications for the two deliverables. Do not use the same publication and change the conditions that show because that creates a lot of risk that the conditions will be set improperly for an output.
Tags with a condition applied include an ishcondition attribute in the tag. For example, a section tag that has a condition of Administration applied looks like this: section ishcondition=”otherprops=Administration”