I am working on SXA 1.2 along with sitecore 8.2 rev. 161129.
I am trying to build a search functionality using SXA toolbox controls. I tried adding a Filter(dropdown) control to the page, added a class to the facet field to fill this dropdown with certain items in a folder.
I added a class implementing ISimpleFacet which returns an array of strings (Item IDs), and the value of the "Field Name", was a single line text field that has a string value.
Unfortunately the dropdown is not filling any value.. it is still empty. Any idea what I might be missing?
following is the class written to get the items IDs:
public class ItemsFacet : ISimpleFacet
{
public string[] Filters()
{
return new string[2]
{
"1bfe1a9765d9451a9c77f9fc7210cb64",
"c9b58de777584040be1af11253b56a2a"
};
}
}
Thanks!