+

Search Tips   |   Advanced Search

Filter the content model

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

There are two ways we can filter the content model:

  • Filter on the device class specified in the HTTP request.

    This provides a unified content model for both desktop and mobile users. For pages specific to mobile users, assign only the device class for the mobile client, such as a smartphone or tablet. These pages are then visible only to users who access the portal with one of the specified devices.

  • Filter on the markup language that pages support.

    Useful when building mobile websites for older devices that use markup languages like WML or Compact HTML

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

To enable content model filtering in the portal, go to...

    Resources | Resource Environment | Resource Environment Providers | WP ConfigService | Additional Properties | Custom Properties | New

...and set the appropriate property name...

    Filter by device class
    content.topology.filter.deviceclass = true

    Filter by markup language
    content.topology.filter.markup = true

By default, filtering is not enabled. This step must be done only once.

Save changes, and restart the server.


Parent Model SPI overview

Related tasks:

Set service configuration properties