Conditional attribute profiling id1843I0HN0Y4
At an enterprise level, it is extremely important to ensure that you have a standard tagging system in place. Tags or conditional attributes can be associated with digital assets in the repository, which helps in publishing output based on the chosen conditions. For example, you can create conditional attribute for Windows and Mac content. Then, you add these attributes to the relevant content in your topics. At the time of publishing content, you can choose whether you want to publish Windows or Mac only content.
AEM Guides allows you to easily create and associate conditional attributes using the relevant DITA attributes. You can define conditional attributes at the global level or folder level. The globally defined conditions are visible across all projects and folder-specific conditions are visible only in projects created within the specified folder. Content authors can use these conditional attributes to conditionalize content in their DITA topics or maps that they create or use. These conditions can then be used by the publisher to create conditional presets. Using the conditional presets, the publisher can decide which condition to include and exclude from the published output.
To define conditional attributes, perform the following steps:
-
Click on the Adobe Experience Manager link at the top and choose Tools.
-
Select Guides from the list of tools.
-
Click on the Folder Profiles tile and select a Folder Profile.
note note NOTE You cannot edit the global profile. -
Click on the Conditional Attributes tab and click Edit.
The Conditional Attributes table is shown.
-
Click Add.
-
Enter the Name, Value, and a Label for the attribute.
You can save a profile with only the attribute name. However, an attribute can only be used when it has a value specified to it. If you specify both - value and label for an attribute, the Web Editor would still show only the value of the attribute. The label is shown to the publishing administrator at the time of creating conditional preset.
The following screenshot shows the definition for the
platform
attribute with value ofunix
and a label ofRed Hat Linux
.{width="800"}
-
If you want to add more values for the same attribute, click the + icon and enter additional value and label.
-
If you want to add more attributes, click Add.
-
Click Save to save the changes.
The platform
attribute is stored in the system. Whenever an author decides to use the platform
attribute in a DITA topic in a folder, they will see the values in the Properties tab in the Web Editor.
{width="350"}
Parent topic:Output generation