Choose Which Filters to Apply When Publishing
When you publish your content, you can choose which Types of Filter to apply to the output. This is where you set the criteria for what content you want to include in your final publication.
-
Select the dotted menu (...) for the topic or publication in the Content Manager.
-
Select Publish.
-
Select an Output type, for example HTML5, PDF, etc.).
-
Set the Languages, Variables and Optional Parameters.
Tip
These are common publishing settings. For more details, see Publish Content.
-
Select Edit in the Profiling attributes section.
-
Decide which filter attributes you want to apply to your publication. Then, for each filter attribute that you want to use, select a filter value from the menu. If you can't see the value you need, it is likely that the value has not been added to Paligo yet. To find out how to add a value, see Add the Filter Values
When applying filter attributes and values, be aware that filtering works differently depending on whether you choose a single value or multiple values.
If you choose a single value, Paligo will:
-
Include any content that has your chosen filter attribute and filter value
-
Include any content that does not have the filter attribute
-
Exclude any content that has the filter attribute, but with a different value.
If you choose multiple values, the filter works as an "OR" filter. Paligo will then filter like this:
-
Include any content that has the filter attribute and any of the values you chose for that attribute
-
Include any content that does not have the filter attribute
-
Exclude any content that has the filter attribute, but with a different value to the ones you defined.
Also, be aware that each filter attribute is handled separately. Choosing a value for one filter attribute does not mean Paligo automatically applies the same value for other filter attributes.
Note
If there are any filter attributes that you do not want to use, leave their fields blank. When there is no attribute set, Paligo ignores that type of filter.
-
-
Repeat steps 5 and 6 for each profiling attribute you want to apply.
-
Select OK.
-
Select Publish document to publish your content.
Let's say you have a topic that has three paragraphs:
-
Paragraph suitable for all users. This has no audience filter.
-
Paragraph suitable only for IT admins. You have marked this up with an audience filter attribute and a filter value of "IT admin".
-
Paragraph suitable only for novice users. You have marked this up with an audience filter attribute and a filter value of "Novice".
Eventually, you are going to publish the topic as part of three different outputs, one for each different audience (all, IT admins, novice). But for now, you are only going to publish it for the IT admin audience.
You start the publication process for the IT admin publication. In the publishing settings, you edit the Profiling attributes section and choose Audience: IT admin.
When Paligo generates the output, it:
-
Includes the first paragraph as it does not have the Audience filter.
-
Includes the second paragraph as it has the Audience filter and the IT admin filter value.
-
Excludes the third paragraph as it has the Audience filter, but does not have the IT admin filter value.
Let's say you have a paragraph that is only applicable for customers in North America and the EU. You want to include the paragraph when you are publishing to those markets, but want to exclude it when you are publishing to the Middle East, Australia, and other markets. This is where you need an OR filter, as you want the content to appear when the market is North America or the EU.
To mark up the paragraph, you:
-
Select the
para
element. -
Add the
xinfo:market
attribute in the Element Attributes Panel. -
Set two filter values, EU and North America. They appear separated by a semi-colon.
When you publish the content, you can choose the filters for the publication.
-
If you set the publication's market filter to North America, EU, or both North America and EU, the filtered paragraph is included.
-
If you set the publication's market filter to another region, such as Australia, the filtered paragraph is excluded.
-
If you do not set a market filter for the publication, the filtered paragraph is included. It is only excluded from the publication if the market filter is applied and the value for the market filter does not match North America or EU.
Paligo's filtering is inclusive — you tell Paligo which filtered content to include in the published output. For example, you might tell Paligo to include content that has an audience filter with a filter value of expert. But there may be times where you want to exclude certain content rather than include it. For those situations, set up filter values for the conditions you want to include and the conditions you want to exclude.
For example, if you wanted to include a paragraph in the North America and EU market but exclude it in the Asia market, you would need three filter values: North America, EU, and Asia.
Then, when you publish, you can tell Paligo which content to include. By including one condition, you automatically exclude the other possible conditions.
Note
The "inclusive" filtering strategy may take a while to wrap your head around if you are new to filtering or if you come from another environment where you used filters for both including and excluding specifically. But once you get the idea, the inclusive strategy is very powerful in that it can accomplish exactly the same, but with a much cleaner structure that provides a more robust long-term solution.
Let's say you have three types of users: administrators, engineers, and operators. You have a paragraph that you want to be included for the engineers and operators, but excluded for the administrators. To set this up you:
-
Select the
para
element. -
Apply the
audience
filter attribute. -
Select the value for the
audience
attribute and create these values: "administrators", "engineers", "operators".Note that it is important to create the values you want to exclude as well as the ones you want to include.
-
Set the audience attribute filter to have the values "engineers" and "operators".
When you publish the content, you edit the Profiling attributes and set the audience to "administrators".
The published output will then include:
-
Any content that has an audience filter with a value of "administrators".
The paragraph that you marked up has an audience filter with a value of "engineers" and "operators". As a result, it is not included in the published output.
-
All content that does not have an audience filter.