Searching and filtering products using SPEAK

In the previous recipe, you learned how to list items and sort them using ListControl and SearchDataSource SPEAK components. We are going to extend the previous recipe to apply searching and filtering to them.

How to do it…

We will first implement search on the ProductListing page:

  1. From Sitecore Rocks in the core database, select the ProductListing application item that we created under /sitecore/client/Your Apps/Cookbook.
  2. Open Layout Designer for the item. Add a SearchPanel component to the ApplicationContent.Main placeholder.
  3. Add a TextBox component to the SearchPanel.Searches placeholder, set its ID to TextBoxProduct, and give any watermark text.
  4. We have already used the SearchDataSource component to retrieve ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.