+

Search Tips   |   Advanced Search

Filtering the content model


By applying filters to the content model, we can exclude parts of the page hierarchy from the content model. Filtering is performed based on request data and metadata assigned to the pages.

There are two ways we can filter the content model:

When filtering for mobile devices that support HTML, filter only by device class.

  1. Enable content model filtering in the portal. By default, filtering is not enabled. This step must be done only once.

    1. Log in to the WAS admin console.

    2. Click Resources > Resource Environment > Resource Environment Providers.

    3. Click WP ConfigService.

    4. Under Additional Properties, click Custom Properties.

    5. Click New, and enter the appropriate property name, depending on the type of filterinto perform.

        Filter by device class

        Add content.topology.filter.deviceclass, and set the string value to the true.

        Filter by markup language

        Add content.topology.filter.markup, and set the string value to the true.

  2. Save the changes, and restart the server.


Parent: Model SPI overview
Related:
Sub packages of the Model SPI
Obtaining a model from the portal
Obtaining the object ID for a page or portlet
Model SPI samples
Remote Model SPI REST service
Related:
Set service configuration properties