Step 1: Branching the Data Sources

Before creating a search page, branch the Coveo for Sitecore Hive Data Sources so you can use them across your site.

With the Coveo for Sitecore legacy components, it was considered a best practice to inherit from the CoveoModule folder to create parameters items, which could be used as data source across different projects (see Using Sitecore Items for a Component Properties).

Coveo for Sitecore Hive simplifies this process; it requires you to create or use an existing data source item when inserting a component on the page.

You can create data source in your current project. However, to ease encapsulation and reuse, you might want to create a Global Data Source folder (see Rendering Data Source Branch Templates).

In this tutorial, you’ll learn how to create a Global Data Source folder and conceive a new search page from it.

  1. In the Sitecore Content Editor, in the tree on the left, select the parent item of the folder item which you use for controls across many projects.

    According to the Sitecore Helix principles, this folder item would be called Features. In the Launch Sitecore demo, it’s called Global.

    If you don’t have such a folder item, you’re encouraged to create one.

  2. Right-click the folder item, and select Insert > Insert from template.

  3. In the Insert from Template window, select Branches > Coveo Hive > Coveo Global Parameters Folders.

  4. In Item Name, choose a name for your folder, and select Insert.

You now have a set of folders with insert options for the parameters of each Coveo for Sitecore Hive components. You’re now ready to proceed to Step 2: Adding and Previewing the Search Resources.