Filter element

Use the Filter element to add Exposed filters to your View template. The settings for the exposed filters are configured within the Drupal views user interface. For more information, see Creating views.

Using the Filter element you are able to render an exposed filter in the format Drupal provides or as a list. If you want to style the exposed filter using DX8 you must use the List style display. You cannot style exposed filters which are set to display as a Select (drop-down).

Locating the filter element

To find the Filter element:

Navigate to a page or template with the Layout canvas

Click the + button on the Layout canvas

Within the Elements tab, look for the Filter element.

The Filter element includes the following fields:

View filter

The following fields are dependant on the filters set-up within your view.

Drupal default - This will use display Drupal provides. The style of this display needs to be defined in your Drupal theme by a developer

List style - Use a DX8 Custom list style. This can be used to style filters that are lists. For example, lists of tags, categories or authors. The list style cannot be applied to filters set to display as a Select (drop-down)

List stye - If List style is selected within Filter display type, you can select the specific List custom style to use.

View reloads on change

Reloads on change - Set the filter to reload the view when the user clicks on a filter option. If using the Filter submit button element then toggle this setting to off.