I have been trying to implement a custom search for searching pages in the editor mode,
But i have not manage to do it.
I have manage to do it for products in Catalog area, but not in pages.
I have try this:
[SearchProvider]
public class CustomPageSearchProvider : ISearchProvider
{
public CustomPageSearchProvider()
{
}
public string Area => "Cms";
public string Category => "Custom page search";
public virtual IEnumerable<SearchResult> Search(Query query)
{
var list = new List<SearchResult>();
list.Add(new SearchResult("https://www.test.com", "Test 1"));
list.Add(new SearchResult("https://www.test.com", "Test 2"));
return list;
}
}
Hi
I have been trying to implement a custom search for searching pages in the editor mode,
But i have not manage to do it.
I have manage to do it for products in Catalog area, but not in pages.
I have try this: