Skip to Content
Sitecore Cookbook for Developers
book

Sitecore Cookbook for Developers

by Yogesh Patel, Patel Y Sunderbhai
April 2016
Beginner content levelBeginner
338 pages
7h 38m
English
Packt Publishing
Content preview from Sitecore Cookbook for Developers

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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Azure for Developers

Hands-On Azure for Developers

Kamil Mrzygłód

Publisher Resources

ISBN: 9781784396527Supplemental Content