Configure filter criterion: Content datasource: Title (No description available) Expose…
- User
Configure filter criterion: Content datasource: Title (No description available) Expose this filter to visitors, to allow them to change it Required
Filter type to expose Single filter Grouped filters Grouped filters allow a choice between predefined operator|value pairs. Label Title Description
Operator contains doesn't contain Is empty (NULL) Is not empty (NOT NULL) Value
Problem is, if I have a software offering (the content type this view is showing) of a title called "lasanga", it won't show unless you type lasagna, and nothing else. I want it to be like (title.includes(search term))
- Assistant
To address this problem, you need to ensure that the filter matches any part of the title, rather than requiring an exact match. The default "contains" operator should already allow for partial matches, but let's go through how to configure it correctly for the desired functionality:
-
Filter Type Selection:
- Ensure you have selected the "Single filter" option for simplicity, unless you have a specific reason to use "Grouped filters."
-
Filter Setup:
- From your filter list, configure the filter on the "Title" field.
- Set the Operator to "contains," which should enable partial matching within titles.
-
Expose Filter to Visitors:
-