Skip to main content

Filter Inline Elements

Use the phrase element to apply filters to inline elements. This is useful when you need to filter part of a block element, for example, if you wanted to filter one sentence in a paragraph rather than the entire paragraph.

To filter inline elements:

  1. Select the content you want to filter.

    A topic containing a title, a paragraph, and a procedure with 3 steps. A callout arrow points to a sequence of 3 words in a step. The 3 words are highlighted to show they are selected.
  2. Press Alt + Enter ⏎ (Windows) or Command ⌘ + Enter ⏎ (Mac) to display the Element Context Menu.

    Element context menu shows a search field and a list of elements that are valid at the current position.
  3. Enter phrase and select it.

    Paligo inserts your selected content into the phrase element.

  4. Click in your selected content so that the phrase element is shown in the Element Structure Menu.

    A topic containing a title, a paragraph, and a procedure. There is a callout arrow pointing at a sequence of three words in one of the steps. The three words have arrow icons around them to show they are inside an inline element. Another callout arrow points to the phrase element in the Element Structure Menu. It shows that the inline element around the highlighted 3 words is a phrase element.
  5. Add the filter condition that you want to apply to the phrase In the Element Attributes Panel.

    This works in the same way as filtering any other element, for example, you could set an xinfo:country attribute if you wanted to be able to include/exclude the phrase based on the country. To find out about the range of filters available, see Types of Filter.

    Element attributes panel. The phrase element is selected and it has been given an xinfo:country filter with the value set to USA.
  6. Set the value for the filter and apply it to your phrase element.

    To find out about filter values, see Add the Filter Values.

  7. Select Save. Save icon.

When you publish, you can choose which filters to apply to your content. As the inline content is now wrapped in a phrase element, it can be filtered in the same way as any other element. The settings you choose when you publish will determine whether the phrase is included or excluded from the published content.