Understand how to set attributes or conditional tags after creating filters for a topic in Adobe FrameMaker.
After you create the filters in a topic, you can use these filters to show or hide content based on applied attributes. To filter content in a topic, you apply attribute values to the elements in the content. You then create filters based on the attributes applied to the content. To show or hide the content based on the filters, you need to apply the specific filter to the content.
For example: You have applied the @audience
attribute
to different elements (with the values admin
, author
, and enduser
).
You then create multiple filters:
Filters content targeted at administrators and authors.
Filter content targeted at administrators, authors, and end users.
This means that you will apply a different filter depending on the required output.
At any point, you can apply only one filter to a topic. This means that you can create any number of filters and then depending on the required output, you apply the appropriate filter.
To apply a filter, do the following:
Choose Manage Attribute Expressions dialog.
to open theTo filter the content, select Show as per Expression and select the required expression.
For example, the following
expression filters content that is tagged with the @audience
attribute set
to admin
or author
:
(audience="admin" or audience="author")
This
implies that any element tagged with the @audience
attribute
set to any other value is excluded. However, if an element is not
tagged with the @audience
attribute, it is not excluded.
In the Filtered Text group, you choose how to filter the content:
Hide content as per the filter expression.
Display the font color of text as per filter expression with the selected color. Use this option for review purposes.
Apply a conditional tag to the filtered content.
From the drop-down list, choose the conditional tag. The selected conditional tag is then applied to the filtered content.
For example,
say the audience attribute of conditional elements in a topic are
tagged as admin
, author
, and enduser
.
If you apply the following attribute filter to a topic: filter
(audience="admin" or audience="author")
The
filter excludes elements tagged as enduser
.
If you choose the Apply Condition Tag option, the
selected conditional tag is applied to the excluded elements. For
details on how to apply conditional tags and show / hide content
using conditional text, see Conditional text.
Click Apply.