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.
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 Site Studio 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:
The following fields are dependant on the filters set-up within your view.
- View - Select the View the template will be used for
- View display - Select the View display. For all displays, select Master. View displays are set-up within Drupal views
- Exposed filters - Select the exposed filter to use. Exposed filters are set-up within Drupal views
- Filter display type - Select how the filter should be displayed.
- 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 Site Studio 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.
- 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.
- Add comments - Add comments to the Element. For more information, see Adding comments to an element.