I want to add a search filter which can be used for building search queries in Sitecore as per described in the documentation. The search filter should filter by inherited templates.
I have followed the description here:
- In the content tree, navigate to /sitecore/system/Settings/Buckets/Search Types. Sitecore recommends that you add new search filters in the User Defined folder.
- Select the User Defined folder, and on the Home tab, in the Insert group click Field Search Type. Give the new search type an appropriate name. This is the name that users enter in the search box to apply the filter. For example: if you name the search type Date, the user must type in Date: in the search box to apply the filter. The name is case sensitive.
- In the new search type item, in the Search Type section, in the Control Type field select the type of control that is most appropriate for your search.
- In the Display Text field, enter an appropriate text and ensure that the wording is consistent with all the other search filters. This text is displayed in the drop-down menu when users browse the search filters.
- If you want to apply a custom syntax to the Control Type field to create specific output., enter this in the Web Method field. For example, if the Control Type field is a calendar, the Web Method field can make a request to a web service to tell Sitecore to display a calendar control that only allows you to select a date from the last 2 calendar years.
However, the filter doesn't appear when I try to use it:
I can see an XHR request to https://url/sitecore/shell/Applications/Buckets/ItemBucket.asmx/GetAllSearchFilters
Which returns all the filters in a JSON format, where mine is not included. The full response can be posted per request.
The data entered in the Field Type Search item is as follows:
- Icon:
/sitecore/shell/Applications/Buckets/images/text.png
- Name:
inherited
- Field:
_templatesimplemented
- Control Type:
Auto Suggest
- Control Type Parameter:
- Display Text:
Search by Base Template
- Web Method:
ItemBucket.asmx/GetTemplates
- Client Side Hook:
id
The question is, what am I missing, to configure a Search Filter?
Auto Suggest List
. There is noAuto Suggest
optionAuto Suggest List
, that is a typo on my behalf.