Skip to main content

Filter Inline Elements

You can 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.

    highlight-inline-text.jpg
  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.

    phrase-added.jpg
  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 filter types, see Filter Attributes.

    phrase-filter-by-country.jpg
  6. Set the value for the filter and apply it to your phrase element.

    To find out about filter values, see Filter Elements.

  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.